js对象元素排序

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

 

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