When sorting tracks, sort on duration after sorting on name, title, and genre. This way of tracks do not have a takc number, disc, year, etc, then we will sort on the name/title before duraiton.
This commit is contained in:
committed by
craig.p.drummond@gmail.com
parent
0b1791bc7b
commit
a93dc24bf2
@@ -129,9 +129,6 @@ int Song::compareTo(const Song &o) const
|
||||
if (year!=o.year) {
|
||||
return year<o.year ? -1 : 1;
|
||||
}
|
||||
if (time!=o.time) {
|
||||
return time<o.time ? -1 : 1;
|
||||
}
|
||||
compare=title.localeAwareCompare(o.title);
|
||||
if (0!=compare) {
|
||||
return compare;
|
||||
@@ -144,6 +141,9 @@ int Song::compareTo(const Song &o) const
|
||||
if (0!=compare) {
|
||||
return compare;
|
||||
}
|
||||
if (time!=o.time) {
|
||||
return time<o.time ? -1 : 1;
|
||||
}
|
||||
return file.compare(o.file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user