aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/natural_sorting.mdwn
blob: faa52304343dd82eb5ac9426012c565cefd6341f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[[!tag wishlist]]
[[!tag patch]]

the inline plugin's sorting is plain lexical, thich may not be appropriate for
page titles if they have numeric components. the
[Sort::Naturally](http://search.cpan.org/dist/Sort-Naturally/) perl module
provides an algorithm for that.

there is a
[patch](http://github.com/github076986099/ikiwiki/commit/25617577746dc1e4ab5ab69aa70d633daddcc01b)
attached that makes the [[plugins/inline]] plugin use Sort::Naturally if sort
is set to "title_natural".

the current patch uses `require Sort::Naturally`, so
[libsort-naturally-perl](http://packages.debian.org/libsort-naturally-perl)
does not become a dependency; it might be worth suggesting, though.

> See also: [[inline:_numerical_ordering_by_title]] (I probably prefer your
> approach..) --[[Joey]] 

> [[applied|done]]