Commit 8c8125d1 authored by IBBoard's avatar IBBoard Committed by Bastien Nocera
Browse files

query: Coalesce the title and filename to get consistent ordering

This should make tracker order (by title, or by file name if
no title) match the UI order (by "title", which uses the file
name if there is not title).

Closes: #6
parent 3507a07b
Pipeline #101025 passed with stage
in 9 minutes and 6 seconds
......@@ -162,7 +162,7 @@ var QueryBuilder = new Lang.Class({
switch (sortBy) {
case Gd.MainColumns.PRIMARY_TEXT:
tailSparql += 'ASC(?title) ASC(?filename)';
tailSparql += 'ASC(tracker:coalesce(?title, ?filename))';
case Gd.MainColumns.SECONDARY_TEXT:
tailSparql += 'ASC(?author)';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment