In this case just override the method compareTo()
Type: Posts; User: Asido
In this case just override the method compareTo()
Try to look at Comparator and Comparable interfaces. You have to implement one of these or both interfaces, implement some methods and then sort the method by calling Collections.sort() or something....