]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/natural_sorting.mdwn
2215d533ebf08e7e5105b9aeb40d40f2dbe78fad
[ikiwiki.git] / doc / todo / natural_sorting.mdwn
1 [[!tag wishlist]]
2 [[!tag patch]]
3
4 the inline plugin's sorting is plain lexical, thich may not be appropriate for
5 page titles if they have numeric components. the
6 [Sort::Naturally](http://search.cpan.org/dist/Sort-Naturally/) perl module
7 provides an algorithm for that.
8
9 there is a
10 [patch](http://github.com/github076986099/ikiwiki/commit/25617577746dc1e4ab5ab69aa70d633daddcc01b)
11 attached that makes the [[plugins/inline]] plugin use Sort::Naturally if sort
12 is set to "title_natural".
13
14 the current patch uses `require Sort::Naturally`, so
15 [libsort-naturally-perl](http://packages.debian.org/libsort-naturally-perl)
16 does not become a dependency; it might be worth suggesting, though.
17
18 > Great, but all I get from the github link is a server error page, so I
19 > have not figured out how to merge the patch. --[[Joey]] 
20
21 > See also: [[inline:_numerical_ordering_by_title]] (I probably prefer your
22 > approach..) --[[Joey]]