diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-01-29 18:04:04 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-01-29 18:04:04 -0800 |
commit | baaa8deb363261af488a2ca736fc0a402aa41bca (patch) | |
tree | 8f385d713ac61f77ec342a7b69a0fe8382ac8449 /subsonic-android | |
parent | c60b6266bdfdac70f14438562704cc4f469edc25 (diff) | |
download | dsub-baaa8deb363261af488a2ca736fc0a402aa41bca.tar.gz dsub-baaa8deb363261af488a2ca736fc0a402aa41bca.tar.bz2 dsub-baaa8deb363261af488a2ca736fc0a402aa41bca.zip |
Closes #100 In offline mode ignore 'the' for sorting
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java | 9 |
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); } }); |