[gnome-software/gnome-3-26] Don't use app ID as a tie-break when ordering search results.



commit 3eb21e8895c9997d0c649885fdd1d720155b6116
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Feb 19 16:25:34 2018 +1300

    Don't use app ID as a tie-break when ordering search results.
    
    This in particular caused the Snap search results to be alphabetically ordered.
    They are returned from the search API in importance order so they shouldn't be
    changed.
    
    If all quality properties of a search result are the same, there doesn't seem
    to be an issue keeping them in the order the plugins returned.

 src/gs-search-page.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/src/gs-search-page.c b/src/gs-search-page.c
index c4243cdd..8cfdec86 100644
--- a/src/gs-search-page.c
+++ b/src/gs-search-page.c
@@ -235,9 +235,6 @@ gs_search_page_get_app_sort_key (GsApp *app)
        /* sort by kudos */
        g_string_append_printf (key, "%03u:", gs_app_get_kudos_percentage (app));
 
-       /* tie-break with id */
-       g_string_append (key, gs_app_get_unique_id (app));
-
        return g_string_free (key, FALSE);
 }
 


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