Let's make it take the property name and sorting order as parameters, so it can be reused. function compare(key, order = 'asc') { return ...
確定! 回上一頁