js对象元素排序

{a:4,b:2,c:6}.sort(function(a,b){
    return a > b;
});

 

posted @ 2015-12-16 22:31  刘满blog  阅读(654)  评论(0)    收藏  举报