aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-01-29 18:04:04 -0800
committerScott Jackson <daneren2005@gmail.com>2013-01-29 18:04:04 -0800
commitbaaa8deb363261af488a2ca736fc0a402aa41bca (patch)
tree8f385d713ac61f77ec342a7b69a0fe8382ac8449 /subsonic-android/src/github
parentc60b6266bdfdac70f14438562704cc4f469edc25 (diff)
downloaddsub-baaa8deb363261af488a2ca736fc0a402aa41bca.tar.gz
dsub-baaa8deb363261af488a2ca736fc0a402aa41bca.tar.bz2
dsub-baaa8deb363261af488a2ca736fc0a402aa41bca.zip
Closes #100 In offline mode ignore 'the' for sorting
Diffstat (limited to 'subsonic-android/src/github')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java
index c63fc0f3..b4c48bde 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java
@@ -92,6 +92,15 @@ public class OfflineMusicService extends RESTMusicService {
return -1;
}
+ int index = lhs.indexOf("The ");
+ if(index == 0) {
+ lhs = lhs.substring(4, 0);
+ }
+ index = rhs.indexOf("The ");
+ if(index == 0) {
+ rhs = rhs.substring(4, 0);
+ }
+
return lhs.compareTo(rhs);
}
});