summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-02-26 08:44:21 +0000
committerRichard Hughes <richard@hughsie.com>2016-02-26 08:44:32 +0000
commitdd309be525277ddc93c3002b36fceb097e14a122 (patch)
tree13cbb03d3d929a719e2f8bba4f5ccff2c45dcad1
parentb7fe421f6ab63418e14685934ce4b115211d8e32 (diff)
downloadappstream-glib-dd309be525277ddc93c3002b36fceb097e14a122.tar.gz
trivial: Display the search sort key in hex
-rw-r--r--client/as-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/as-util.c b/client/as-util.c
index e88e6d6..287f3d0 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -1331,7 +1331,7 @@ as_util_search (AsUtilPrivate *priv, gchar **values, GError **error)
score = as_app_search_matches_all (app, values);
if (score > 0) {
g_autofree gchar *sort_key = NULL;
- sort_key = g_strdup_printf ("%05i", score);
+ sort_key = g_strdup_printf ("%05x", score);
as_app_add_metadata (app, "SortKey", sort_key);
g_ptr_array_add (array, g_object_ref (app));
}