Commit 5f32176a authored by Richard Hughes's avatar Richard Hughes
Browse files

Return the subcategories sorted by name

When we have better ratings data we can use that instead in the UI.
parent e50f69f5
......@@ -66,6 +66,16 @@ gs_plugin_loader_error_quark (void)
return quark;
}
/**
* gs_plugin_loader_app_sort_cb:
**/
static gint
gs_plugin_loader_app_sort_cb (gconstpointer a, gconstpointer b)
{
return g_strcmp0 (gs_app_get_name (GS_APP (a)),
gs_app_get_name (GS_APP (b)));
}
/**
* gs_plugin_loader_dedupe:
*/
......@@ -1219,6 +1229,9 @@ cd_plugin_loader_get_category_apps_thread_cb (GSimpleAsyncResult *res,
goto out;
}
/* sort, just in case the UI doesn't do this */
state->list = g_list_sort (state->list, gs_plugin_loader_app_sort_cb);
/* success */
state->ret = TRUE;
g_object_unref (state->category);
......
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