valueList为 包含一个对象的List valueList.sort( function(a, b) { if(a.排序字段< b.排序字段) return -1; if(a.排序字段 > b.排序字段) return 1; return 0; } ); 执行完毕后 自动排序完成