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)
Menu