Quantcast
Channel: How to sort List of objects by some property - Stack Overflow
Viewing all articles
Browse latest Browse all 19

Answer by Liv for How to sort List of objects by some property

$
0
0

You can call Collections.sort() and pass in a Comparator which you need to write to compare different properties of the object.


Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>