summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-09-26 02:57:49 +0530
committerArun Isaac2021-09-26 02:59:23 +0530
commit2580763fcc905afb392791ef9c592f3ae418d1b0 (patch)
tree8457504641a831fa38fb8b3066351fab4c633361
parentbf6ade1b9843d9b57b2188a886c0b8d2eee7e462 (diff)
downloadgn-gemtext-2580763fcc905afb392791ef9c592f3ae418d1b0.tar.gz
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.
-rwxr-xr-xgnbug4
1 files 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)