let arr = [{'sd':'1','content':'这是上午'},{'sd':'2','content':'这是中午'},{'sd':'3','content':'这是下午'}]
arr.sort(this.compare('sd'))
compare(property){
return function(a,b){
let value1 = a[property]
let value2 = b[property]
return value1 - value2
}
}