📌  相关文章
📜  不可变的js排序升序和降序 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:32.900000             🧑  作者: Mango

代码示例1
var sorted = data.get('item').sortBy((item) => -item.get('sequence'));
// or var sorted = data.get('item').sortBy((item) => item.get('sequence')).reverse();
// you can now use .map() to go through your OrderedMap which has been
// sortbed by the sequence property and would look like your desired output