+ /** Comparator that sorts artists by name. */
+ public static final Comparator<Artist> NAME_COMPARATOR = new Comparator<Artist>() {
+
+ @Override
+ public int compare(Artist leftArtist, Artist rightArtist) {
+ return leftArtist.getName().compareToIgnoreCase(rightArtist.getName());
+ }
+ };
+