728x90 sort1 dart 2차 정렬하기 (twice ordering) https://stackoverflow.com/questions/55920677/how-to-sort-a-list-based-on-two-values How to sort a list based on two values I have a list in which I want to sort based on two values date and the status like this: pollsList.sort((a, b) => b.active.compareTo(a.active)); pollsList.sort((a, b) { return b. stackoverflow.com pollsList.sort((a, b) { int cmp = b.actualStartDatetime.compareTo(a.actualStar.. 2022. 12. 16. 이전 1 다음 728x90