aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-09-15 08:55:02 -0700
committerScott Jackson <daneren2005@gmail.com>2015-09-15 08:55:02 -0700
commitcfbed3bdd977a4c140b32ad2e821ebe27f3c2365 (patch)
treef10801cb285bc243901da344a4d29bdc24df9213 /app/src/main/java/github
parent59dca36ab7a630332bb7ee6afb025f5c0c414541 (diff)
downloaddsub-cfbed3bdd977a4c140b32ad2e821ebe27f3c2365.tar.gz
dsub-cfbed3bdd977a4c140b32ad2e821ebe27f3c2365.tar.bz2
dsub-cfbed3bdd977a4c140b32ad2e821ebe27f3c2365.zip
Fix Root folder getting sorted in
Diffstat (limited to 'app/src/main/java/github')
-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();