[gnome-music] query: Order songs query by artist/album/disc no/track no.



commit 3ddbe3f15760e8e207284b9938128bfff4332a5a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Mar 4 21:33:50 2015 +0100

    query: Order songs query by artist/album/disc no/track no.
    
    This ordering seems more intuitive than the insertion time as known
    by tracker. Songs are more locatable in large lists, and it makes songs
    actually played in order with shuffle off.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745646

 gnomemusic/query.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index 793799f..7dc7cad 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -449,7 +449,7 @@ class Query():
                 }
             )
         }
-    ORDER BY tracker:added(?song)
+    ORDER BY ?artist ?album nmm:setNumber(nmm:musicAlbumDisc(?song)) nmm:trackNumber(?song)
     '''.replace('\n', ' ').strip() % {
             'where_clause': where_clause.replace('\n', ' ').strip(),
             'music_dir': Query.MUSIC_URI,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]