Sort files for MobileOrg

This commit is contained in:
Carsten Dominik 2009-10-18 16:57:09 +02:00
parent 3874113602
commit f253a8280b
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,8 @@
(org-mobile-inbox-for-pull): Document the best location for this
file.
(org-mobile-check-setup): Verify `org-directory'.
(org-mobile-create-index-file): Sort the files to be listed in
index.org.
2009-10-17 Carsten Dominik <carsten.dominik@gmail.com>

View File

@ -261,7 +261,8 @@ agenda view showing the flagged items."
(defun org-mobile-create-index-file ()
"Write the index file in the WebDAV directory."
(let ((files-alist org-mobile-files-alist)
(let ((files-alist (sort (copy-sequence org-mobile-files-alist)
(lambda (a b) (string< (cdr a) (cdr b)))))
(def-todo (default-value 'org-todo-keywords))
(def-tags (default-value 'org-tag-alist))
file link-name todo-kwds done-kwds tags drawers entry kwds dwds twds)