Example #1
0
 @Override
 public int compare(Hymn a, Hymn b) {
   return (int) (a.getId() - b.getId());
 }
Example #2
0
 @Override
 public int compare(Hymn a, Hymn b) {
   return a.getAuthor().compareTo(b.getAuthor());
 }
Example #3
0
 @Override
 public int compare(Hymn a, Hymn b) {
   return a.getTitle().compareTo(b.getTitle());
 }