하나의 값을 이용해서 정렬할 때
_.orderBy(that.List, imte => item.value1, ['desc']);
하나 이상의 값을 이용해서 정렬할 때
_.orderBy(that.List, [value1, value2], ['desc', 'asc']);
_.orderBy(that.List, [item => item.value1, item => item.value2], ['desc', 'asc']);
'IT > Javascript' 카테고리의 다른 글
[에러]지금 이 페이지가 작동하지 않습니다.127.0.0.1은(는) 데이터를 보내지 않았습니다. (0) | 2021.07.06 |
---|