diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-12-17 17:22:03 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-12-17 17:22:03 -0800 |
commit | 369688d27af300182f69f17f09833f07a8411aab (patch) | |
tree | a2a79e5766d3f82147a588419b235cf5b412c8ab | |
parent | 2aaca47d4ae2cfc43eafca8f3dd6671a04b30965 (diff) | |
download | dsub-369688d27af300182f69f17f09833f07a8411aab.tar.gz dsub-369688d27af300182f69f17f09833f07a8411aab.tar.bz2 dsub-369688d27af300182f69f17f09833f07a8411aab.zip |
Fix sort with multiple tracks with the same track #
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java index b502bdf4..575d99f8 100644 --- a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java +++ b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java @@ -625,7 +625,7 @@ public class MusicDirectory implements Serializable { Integer lhsTrack = lhs.getTrack(); Integer rhsTrack = rhs.getTrack(); - if(lhsTrack != null && rhsTrack != null) { + if(lhsTrack != null && rhsTrack != null && lhsTrack != rhsTrack) { return lhsTrack.compareTo(rhsTrack); } else if(lhsTrack != null) { return -1; |