const asc: string[] = [];
const desc: string[] = [];
if (msg.sort) {
const key = Object.keys(msg.sort)[0];
console.log('key', key)
if (parseInt(msg.sort[key]) === -1) {
desc.push(key);
} else if (parseInt(msg.sort[key]) === 1) {
asc.push(key);
}
}
console.log('正序,倒序', asc[0], desc[0])