From 2580763fcc905afb392791ef9c592f3ae418d1b0 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 26 Sep 2021 02:57:49 +0530 Subject: gnbug: Reverse the order of listing of issues. Listing issues oldest first makes for more persistent issue numbers. * gnbug (issues): Reverse the order of listing of issues, listing them oldest first. --- gnbug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnbug b/gnbug index 1bc682a..56249d4 100755 --- a/gnbug +++ b/gnbug @@ -61,7 +61,7 @@ even if it exits non-locally. Return the value returned by PROC." (open issue-open)) (define (issues) - "Return a list of all issues, sorted newest first." + "Return a list of all issues, sorted oldest first." ;; Get all gemini files except README.gmi and hidden files. Text ;; editors tend to create hidden files while editing, and we want to ;; avoid them. @@ -88,7 +88,7 @@ even if it exits non-locally. Return the value returned by PROC." (not (string=? (basename name) "README.gmi")) (not (string-prefix? "." (basename name))))))) (lambda (issue1 issue2) - (> (issue-created-date issue1) + (< (issue-created-date issue1) (issue-created-date issue2))))) (define (hashtable-append! hashtable key new-values) -- cgit v1.2.3