From: Michael Tremer Date: Tue, 21 Feb 2023 17:21:59 +0000 (+0000) Subject: db: Don't return filelists in a funny order X-Git-Tag: 0.9.29~381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6da744eb1272db9ff8add97fb61cea61917fa771;p=pakfire.git db: Don't return filelists in a funny order Since filelists are now ordered, there is no point in trying to be smart here. In fact it is more efficient to return it pre-sorted. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/db.c b/src/libpakfire/db.c index 8857647a1..0ca3f7523 100644 --- a/src/libpakfire/db.c +++ b/src/libpakfire/db.c @@ -2364,9 +2364,8 @@ int pakfire_db_package_filelist(struct pakfire_db* db, struct pakfire_filelist** "files.pkg != duplicates.pkg" ") " - // Return the longest paths first - "ORDER BY " - "length(path) DESC" + // Return ordered by path + "ORDER BY path" ";"; // Prepare the statement