X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=ikiwiki%2Fpagespec%2Fsorting.mdwn;fp=ikiwiki%2Fpagespec%2Fsorting.mdwn;h=41aa58151c20bb44ba0ee16b6e1b93eaa70cadf0;hb=21bc7812e43447c6184393b6af03440ec48da227;hp=0000000000000000000000000000000000000000;hpb=e7cd66b8cf72a928b847f78bf8ba0edbf02499ea;p=obsolete%2Fnotmuch-wiki diff --git a/ikiwiki/pagespec/sorting.mdwn b/ikiwiki/pagespec/sorting.mdwn new file mode 100644 index 0000000..41aa581 --- /dev/null +++ b/ikiwiki/pagespec/sorting.mdwn @@ -0,0 +1,11 @@ +Some [[directives|ikiwiki/directive]] that use +[[PageSpecs|ikiwiki/pagespec]] allow +specifying the order that matching pages are shown in. The following sort +orders can be specified. + +* `age` - List pages from the most recently created to the oldest. +* `mtime` - List pages with the most recently modified first. +* `title` - Order by title. +* `title_natural` - Only available if [[!cpan Sort::Naturally]] is + installed. Orders by title, but numbers in the title are treated + as such, ("1 2 9 10 20" instead of "1 10 2 20 9")