org.el: Implement user-defined table sorting
commit71b098702c82116ae1e8a64ae7b28d7a1d173f23
authorJon Snader <jcs@manfredII.local>
Sat, 20 Dec 2014 18:13:17 +0000 (20 13:13 -0500)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 20 Dec 2014 19:36:57 +0000 (20 20:36 +0100)
tree75c841b4f38c88ca9059171c71f107c8a656c211
parent54dfb86719e8bc83f973898faff656dc77123ea5
org.el: Implement user-defined table sorting

* lisp/org.el (org-do-sort): Implement the ?f and ?F sorting options
  to allow user-defined table sorting.  Update the DOC string.

* lisp/org-table (org-table-sort-lines): Add the GETKEY-FUNC and
  COMPARE-FUNC optional parameters and pass them to the call to
  `org-do-sort'.  Update the DOC string.

* doc/org.texi (org-table-sort-lines): Update documentation to reflect
  the addition of the ?f and ?F options.

This patch implements user-defined extraction and comparison functions
for table sorting.  Thanks to Nicolas Goaziou for helpful suggestions.

This patch was discussed on the Org Mode mailing list:
http://article.gmane.org/gmane.emacs.orgmode/93334
doc/org.texi
lisp/org-table.el
lisp/org.el