From 58fa82642e1a155e92a218a58753974587b3b956 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Sun, 5 Mar 2023 12:15:56 +0200 Subject: db, apps: sort packages by pkgname and pkgver This will also fix "search" to display one match from each principal pkgname group. "search -e vim" will now show both vim and gvim. fixes #10864 fixes #10777 --- src/app_list.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/app_list.c') diff --git a/src/app_list.c b/src/app_list.c index 13ab0a7..fed9aa9 100644 --- a/src/app_list.c +++ b/src/app_list.c @@ -164,6 +164,7 @@ static int print_result(struct apk_database *db, const char *match, struct apk_n if (!name) return 0; + apk_name_sorted_providers(name); if (ctx->match_depends) { struct apk_name **pname; foreach_array_item(pname, name->rdepends) -- cgit v1.2.3-60-g2f50