[gnome-music: 1/4] query: Sort albums by their title



commit c4893d02f5435edc86ddcc3597d786db6beb7138
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sun Aug 18 19:25:31 2013 +0800

    query: Sort albums by their title
    
    The album variable in the query is redefined, so we should use the title
    variable instead. Also, convert the title to lower case first before sorting.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705093

 gnomemusic/query.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index 00a801d..24bf212 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -74,7 +74,7 @@ class Query():
                 }
             )
         }
-    ORDER BY nie:title(?album) ?author ?albumyear
+    ORDER BY fn:lower-case(?title) ?author ?albumyear
     '''.replace('\n', ' ').strip()
 
     ALBUMS_COUNT = '''


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