diff options
author | http://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web> | 2008-08-07 03:43:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2008-08-07 03:43:59 -0400 |
commit | db1ed357fbe7ca1be639d7108af6868428cf7902 (patch) | |
tree | 97a29143a67d5283556bf7fbb365defb2d35e895 /doc/bugs | |
parent | cc43a6ea70e867ac0d74158fd912540fe2576a19 (diff) | |
download | ikiwiki-db1ed357fbe7ca1be639d7108af6868428cf7902.tar ikiwiki-db1ed357fbe7ca1be639d7108af6868428cf7902.tar.gz |
Note that inline sort by title really sorts by path
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/inline_sort-by-title_issues.mdwn | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/bugs/inline_sort-by-title_issues.mdwn b/doc/bugs/inline_sort-by-title_issues.mdwn new file mode 100644 index 000000000..38063d6a3 --- /dev/null +++ b/doc/bugs/inline_sort-by-title_issues.mdwn @@ -0,0 +1,18 @@ +The [[plugins/inline]] plugin has a `sort="title"` option that causes the pages in the list to be sorted by title rather than creation time. The [[plugins]] list on this wiki was recently changed to use this option. If you look at the plugin page, you'll notice that it doesn't look correctly sorted. e.g. `attach (third party plugin)` falls between `conditional` and `default content for *copyright* and *license*`. + +I think the problem here is that the pages are being sorted by their path, whereas only the basename is displayed. This makes the example above: + + * plugins/conditional + * plugins/contrib/attach + * plugins/contrib/default content for *copyright* and *license* + +and now you can see why it is ordered that way, and why later on we get: + + * plugins/contrib/unixauth (third party plugin) + * plugins/creole + +which appears to list `unixauth` before `creole`. + +I'm not sure what the best fix is. One fix would be to add another sort option, `sort="path"`, that would use the current (broken) sort by title. Then add a true `sort="title"` that actually sorts on the title. It might also be interesting to modify the sort=path to actually list the full path in the links - that way it would be obvious how it is sorted. Or you could ignore the idea for `sort="path"`, and tell people to use [[plugins/map]] for that. + +--Will |