How to sort the following array by name

{transferTotal: 4463838, touchTotal: 4463861, channelName: "", channelId: "OTHER"}

 {transferTotal: 10867488, touchTotal: 11260458, channelName: "", channelId: "ALIPAY"}

 {transferTotal: 1036820, touchTotal: 1094788, channelName: "", channelId: "WECHAT"}

need to sort by Wechat, Alipay, other
my method is very stupid, is traversal, if it is Wechat, push to the new array, delete this of the original array, in the judgment is Alipay, delete again, is there a good way

Dec.13,2021

sort


map

let list = [
  {transferTotal: 4463838, touchTotal: 4463861, channelName: "", channelId: "OTHER"},
  {transferTotal: 10867488, touchTotal: 11260458, channelName: "", channelId: "ALIPAY"},
  {transferTotal: 1036820, touchTotal: 1094788, channelName: "", channelId: "WECHAT"}
];

let result = ['', '', ''].map(name => list.find(item => item.channelName === name));

console.log(result)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea7155-1e25.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea7155-1e25.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?