summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2023-03-04 13:54:54 +0200
committerTimo Teräs <timo.teras@iki.fi>2023-04-11 20:47:43 +0300
commit67f5a753e50da8737dc28b0ea2c2194b21d76fdd (patch)
tree657a81a529d2733eecae1837cc48ac25abe73357 /src/commit.c
parentefb55ce650d3cac9a607560d840f95c1127e68f5 (diff)
downloadapk-tools-67f5a753e50da8737dc28b0ea2c2194b21d76fdd.tar.gz
apk-tools-67f5a753e50da8737dc28b0ea2c2194b21d76fdd.tar.bz2
apk-tools-67f5a753e50da8737dc28b0ea2c2194b21d76fdd.tar.xz
apk-tools-67f5a753e50da8737dc28b0ea2c2194b21d76fdd.zip
db, apps: sort display results based on package names
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index f582ec2..79438db 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -155,7 +155,7 @@ static int sort_change(const void *a, const void *b)
const struct apk_change *cb = b;
const struct apk_name *na = ca->old_pkg ? ca->old_pkg->name : ca->new_pkg->name;
const struct apk_name *nb = cb->old_pkg ? cb->old_pkg->name : cb->new_pkg->name;
- return strcmp(na->name, nb->name);
+ return apk_name_cmp_display(na, nb);
}
static int cmp_remove(struct apk_change *change)