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:
craig.p.drummond@gmail.com
2012-09-10 11:14:33 +00:00
committed by craig.p.drummond@gmail.com
parent 0b1791bc7b
commit a93dc24bf2
2 changed files with 6 additions and 3 deletions

View File

@@ -5,6 +5,9 @@
2. Allow use of 'dynamic' playlists in windows builds, but only for server mode
cantata-dynamic.
3. Add a gui setting to control the enforcement of single-click.
4. 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.
0.8.3.1
-------

View File

@@ -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);
}