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



commit c76de076b619b82b2d845c085d8548ee9cde834c
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 87d494d1..bd925b89 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]