From 20a1b02b9c12d2c06d64012ece772319a97bbdb7 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 17 Dec 2015 17:27:50 -0800 Subject: When sorting albums alphabetically make sure to sort off getAlbumDisplay --- app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java index 575d99f8..3c022cea 100644 --- a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java +++ b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java @@ -609,7 +609,7 @@ public class MusicDirectory implements Serializable { } } - return lhs.getTitle().compareToIgnoreCase(rhs.getTitle()); + return lhs.getAlbumDisplay().compareToIgnoreCase(rhs.getAlbumDisplay()); } Integer lhsDisc = lhs.getDiscNumber(); @@ -632,7 +632,7 @@ public class MusicDirectory implements Serializable { } else if(rhsTrack != null) { return 1; } - + return lhs.getTitle().compareToIgnoreCase(rhs.getTitle()); } -- cgit v1.2.3