From: Jason A. Donenfeld Date: Thu, 30 Mar 2017 11:19:50 +0000 (+0200) Subject: ui-repolist: properly sort by age X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/87c47488d02fcace4da0d468cd9ddd1651b7949e?hp=87c47488d02fcace4da0d468cd9ddd1651b7949e ui-repolist: properly sort by age When empty repos exist, comparing them against an existing repo with a good mtime might, with particular qsort implementations, not sort correctly, because of this brokenness: if (get_repo_modtime(r1, &t) && get_repo_modtime(r2, &t)) However, sorting by the age column works as expected, so anyway, to tidy things up, we simply reuse that function. Signed-off-by: Jason A. Donenfeld ---