# JS对象属性名排序

var newData = {};
Object.keys(data).sort().map(key => {
  newData[key]=s[key]
})