summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://kerravonsen.dreamwidth.org/ <http://kerravonsen.dreamwidth.org/@web>2010-03-24 22:48:47 +0000
committerJoey Hess <joey@finch.kitenet.net>2010-03-24 22:48:47 +0000
commit1a587504e949bf0584acdf7737597c8332467332 (patch)
tree69e4a3f1368514389248cc21f225e9839b92bcd8
parent3b08b19b4e36f82864c73ca035cfdec83b3a43aa (diff)
what about a SortSpec rather than a sort-hook?
-rw-r--r--doc/todo/allow_plugins_to_add_sorting_methods.mdwn2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/todo/allow_plugins_to_add_sorting_methods.mdwn b/doc/todo/allow_plugins_to_add_sorting_methods.mdwn
index 21800f4de..5bfe102ac 100644
--- a/doc/todo/allow_plugins_to_add_sorting_methods.mdwn
+++ b/doc/todo/allow_plugins_to_add_sorting_methods.mdwn
@@ -40,6 +40,8 @@ NIH'd sorting mechanisms:
interpret `sort="x -y z(w)"` as sorting by (pseudocode)
`{ $cmp_x->($a, $b) || (-$cmp_y->($a, $b)) || $cmp_z->($a, $b, "w") }`?
+>> I wonder if IkiWiki would benefit from the concept of a "sortspec", like a [[ikiwiki/PageSpec]] but dedicated to sorting lists of pages rather than defining lists of pages? Rather than defining a sort-hook, define a SortSpec class, and enable people to add their own sort methods as functions defined inside that class, similarly to the way they can add their own pagespec definitions. --[[KathrynAndersen]]
+
## Documentation extracted from the branch
### sort hook (added to [[plugins/write]])