diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-09-15 08:55:02 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-09-15 08:55:02 -0700 |
commit | cfbed3bdd977a4c140b32ad2e821ebe27f3c2365 (patch) | |
tree | f10801cb285bc243901da344a4d29bdc24df9213 | |
parent | 59dca36ab7a630332bb7ee6afb025f5c0c414541 (diff) | |
download | dsub-cfbed3bdd977a4c140b32ad2e821ebe27f3c2365.tar.gz dsub-cfbed3bdd977a4c140b32ad2e821ebe27f3c2365.tar.bz2 dsub-cfbed3bdd977a4c140b32ad2e821ebe27f3c2365.zip |
Fix Root folder getting sorted in
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/domain/Artist.java | 6 |
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(); |