sortedGoods = goods.sort((a, b) => {
if (e.className.indexOf("descending") == -1) {
if (e.className.indexOf("active") == -1) return a.id < b.id ? -1 : 1;
else return a.price - b.price;
} else {
if (e.className.indexOf("active") == -1) return a.id < b.id ? -1 : 1;
else return b.price - a.price;
}
});