(insert (concat "#+TITLE: Blog - All tags\n"))
(insert "#+OPTIONS: ^:nil\n") ; do not use underscores as subscript
(insert "\n")
- (dolist (tag (sort (my-org-get-all-filetags) #'<))
+ (dolist (tag (sort (my-org-get-all-filetags) (lambda (x y) (string-lessp (car x) (car y))) ))
(insert (concat "- [[file:" (file-name-concat my-blog-posts-folder (concat "tag-" (car tag) ".org")) "][" (car tag) "]]\n"))))
(dolist (tag (my-org-get-all-filetags))
(with-temp-file (file-name-concat my-blog-tags-folder (concat "tag-" (car tag) ".org"))
(insert "#+OPTIONS: ^:nil\n") ; do not use underscores as subscript
(insert "\n")
(insert (concat "# " (car tag) "\n\n"))
- (dolist (tagfile (cdr tag))
+ (dolist (tagfile (my-blog-sort-article-list (cdr tag) plist))
(let ((relpath (file-relative-name tagfile my-blog-posts-folder)));;not used
(message (concat "Processing " tagfile))
(insert (concat "- " (format "%s - [[file:%s][%s]]" ;;the date and filename are added after the entry