SOURCE

let arr = [{'a':1},{'b':2},{'c':3},{'d':4},{'e':5}];
arr= arr.sort((n1,n2)=>{
            if(n1.b > n2.a)return -1
            return 0;
        });  
console.log(arr);
console 命令行工具 X clear

                    
>
console