把true排在前面:obj.sort((a, b) => b.bind - a.bind)
过滤:arr = arr.filter(item => item.indexOf('b')<0)
参考链接:https://www.cnblogs.com/qiyc/p/9088007.html