aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java6
1 files changed, 2 insertions, 4 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 bba969e4..a2b6d4ed 100644
--- a/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java
+++ b/app/src/main/java/github/daneren2005/dsub/domain/MusicDirectory.java
@@ -717,11 +717,9 @@ public class MusicDirectory implements Serializable {
Integer rhsTrack = rhs.getTrack();
if(lhsTrack == rhsTrack) {
return collator.compare(lhs.getTitle(), rhs.getTitle());
- }
- if(lhsTrack != null && rhsTrack != null) {
+ } else if(lhsTrack != null && rhsTrack != null) {
return lhsTrack.compareTo(rhsTrack);
- }
- if(lhsTrack != null) {
+ } else if(lhsTrack != null) {
return -1;
}
return 1;