]> git.sesse.net Git - vlc/commitdiff
when sorting playlist with artist, sort also album under artist and tracknumber on...
authorIlkka Ollakka <ileoo@videolan.org>
Fri, 14 Mar 2008 06:32:49 +0000 (08:32 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Fri, 14 Mar 2008 06:34:31 +0000 (08:34 +0200)
I think this is good default atleast on music.

src/playlist/sort.c

index 00adf9f92ddb85279f45334805606caaa6d757b5..7a2a03be6542e4217a1586cd0ff640926baaeaa3 100644 (file)
@@ -187,6 +187,11 @@ static int playlist_cmp(const void *first, const void *second)
     else if( sort_mode == SORT_ARTIST )
     {
         DO_META_SORT( Artist );
+        /* sort by artist, album, tracknumber */
+        if( i_test == 0 )
+            DO_META_SORT( Album );
+        if( i_test == 0 )
+            DO_META_SORT_ADV( TrackNumber, VLC_TRUE );
     }
     else if( sort_mode == SORT_GENRE )
     {