Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

sorting list of multiple in an ascending order

Collections.sort(myList,
            Comparator.comparing(Sorter::isX)
                    .thenComparing(Sorter::isY)
                    .thenComparing(Sorter::isZ));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sorting #list #multiple #ascending #order
ADD COMMENT
Topic
Name
5+9 =