aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-02-22 17:28:33 -0800
committerScott Jackson <daneren2005@gmail.com>2016-02-22 17:28:33 -0800
commitf800e461529b0b56d899fe8480e905ecd873c2e5 (patch)
treecc8369fca9ad4484c442dedd191e5db1396e8706 /app
parentbc88fba76346f9f7130f0cbff10518202317b1d8 (diff)
downloaddsub-f800e461529b0b56d899fe8480e905ecd873c2e5.tar.gz
dsub-f800e461529b0b56d899fe8480e905ecd873c2e5.tar.bz2
dsub-f800e461529b0b56d899fe8480e905ecd873c2e5.zip
Fixes #654: Sort artists same as Web
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/domain/Artist.java4
1 files changed, 2 insertions, 2 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 9d4cbe29..fddafd65 100644
--- a/app/src/main/java/github/daneren2005/dsub/domain/Artist.java
+++ b/app/src/main/java/github/daneren2005/dsub/domain/Artist.java
@@ -138,9 +138,9 @@ public class Artist implements Serializable {
char rhs1 = rhs.charAt(0);
if (Character.isDigit(lhs1) && !Character.isDigit(rhs1)) {
- return 1;
- } else if (Character.isDigit(rhs1) && !Character.isDigit(lhs1)) {
return -1;
+ } else if (Character.isDigit(rhs1) && !Character.isDigit(lhs1)) {
+ return 1;
}
for (String article : ignoredArticles) {