Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

sort a list in java according to last name

 //sort by a single field
    Collections.sort(list, (o1,o2) ->  o1.getfName().compareTo(o2.getfName()));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #list #java
ADD COMMENT
Topic
Name
8+2 =