Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Java
sort a collection based on one value java
Yaya
Programming language:
Java
2021-04-30 21:47:53
0
Q:
sort a collection based on one value java
Astraphic
Code:
Java
2021-05-13 06:52:02
Collections.sort(agentDtoList, (o1, o2) -> o1.getCustomerCount() - o2.getCustomerCount());
0
Tags
java
value
sort
base
Related
sort elements with sortedset
keyset sort java
collections.sort descending order in java
how to sort collection in java
java how to sort custom objects in descending orde
java stream order by property
New to Communities?
Join the community