Sort blogs by latest date, not earliest date

This commit is contained in:
j4nk 2023-07-09 18:17:32 -04:00
parent db9d7169a7
commit 524dba5bc0
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@
;; Link
(defun md4tj-blog-all-blogs-list ()
"Get all blogs in current buffer."
(-sort (lambda (l1 l2) (< (string-to-number (nth 1 l1)) (string-to-number (nth 1 l2)))) (md4tj-util-zip (list (md4tj-blog-titles) (md4tj-blog-times) (md4tj-blog-links)))))
(-sort (lambda (l1 l2) (> (string-to-number (nth 1 l1)) (string-to-number (nth 1 l2)))) (md4tj-util-zip (list (md4tj-blog-titles) (md4tj-blog-times) (md4tj-blog-links)))))
(defun md4tj-blog-all-blogs-list-elt-to-html (elt)
"Convert abl list elt ELT to html."