Sort on Author name A-Z

This commit is contained in:
2015-07-06 17:01:39 +02:00
parent e64fc291fe
commit c111a52f52
+14
View File
@@ -0,0 +1,14 @@
package audio.sorting;
import java.util.Comparator;
import audio.Song;
public class SortAUTHOR implements Comparator<Song> {
@Override
public int compare(Song s1, Song s2) {
return s1.getAuthor().compareTo(s2.getAuthor());
}
}