incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Kable (JIRA)" <>
Subject [jira] Updated: (JSPWIKI-526) Allow administrators to select the Comparator used for sorting page lists by name
Date Tue, 28 Apr 2009 00:31:30 GMT


Greg Kable updated JSPWIKI-526:

    Attachment: jspwiki-526-PageSorter.patch

Updated the patch file - please use this new version! 

this updated version is functionally almost identical (one bug fix).  Details are:

- fixed my own stupid typo bug in AbstractReferralPlugin.  In finalising the first patch,
I managed to stop it using sortOrder.
- Slight optimisation of PageSorter
- Some comment and format changes

The last two could have waited until later but, given the first was necessary, I did them

> Allow administrators to select the Comparator used for sorting page lists by name
> ---------------------------------------------------------------------------------
>                 Key: JSPWIKI-526
>                 URL:
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Localization
>            Reporter: Greg Kable
>            Priority: Minor
>         Attachments: jspwiki-526-PageSorter.patch, jspwiki-526-PageSorter.patch
> I personally hate the order of pages returned by the standard sorting routines and would
rather an order that understood numeric ordering.  That is, instead of having the list:
> WikiPage1
> WikiPage10
> WikiPage2
> I'd like to get the list:
> WikiPage1
> WikiPage2
> WikiPage10
> There are also many other case, especially for localisation, where being able to set
the page name order would be useful.
> To achieve this, I propose adding a JSPWiki property which specifies the Comparator to
be used for page names.  Before I do the work and submit a patch, I'd like to know:
> - Would this be a welcome feature?
> - Is jswpwiki.pageNameComparator an appropriate property name?  If not, what do you suggest?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message