I have a List of Objects like List p.I want to sort this list alphabetically using Object name field. Object contains 10 field and name field is o
List p
I found another way to do the type.
if(listAxu.size() > 0){ Collections.sort(listAxu, Comparator.comparing(IdentityNamed::getDescricao)); }