aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/github/daneren2005')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/domain/Artist.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/domain/Artist.java b/app/src/main/java/github/daneren2005/dsub/domain/Artist.java
index f30147e6..f48dd2f9 100644
--- a/app/src/main/java/github/daneren2005/dsub/domain/Artist.java
+++ b/app/src/main/java/github/daneren2005/dsub/domain/Artist.java
@@ -108,6 +108,12 @@ public class Artist implements Serializable {
}
public int compare(Artist lhsArtist, Artist rhsArtist) {
+ if("root".equals(lhsArtist.getId())) {
+ return 1;
+ } else if("root".equals(rhsArtist.getId())) {
+ return -1;
+ }
+
String lhs = lhsArtist.getName().toLowerCase();
String rhs = rhsArtist.getName().toLowerCase();