You can use Collections.sort
and pass your own Comparator<ActiveAlarm>
↧
Answer by MarcoS for How to sort List of objects by some property
↧
You can use Collections.sort
and pass your own Comparator<ActiveAlarm>