[ 
https://issues.apache.org/jira/browse/JSPWIKI-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Janne Jalkanen updated JSPWIKI-526:
-----------------------------------

    Fix Version/s:     (was: 2.8.3)
                       (was: 3.0)

Please do not set fix versions, those are assigned by the dev team.

I think this may be a fairly complicated job, since we sort based on String and 
WikiPages here and there. So there is no single place where you could just 
simply change it. Also, it's doubtful that a single Comparator would work, you 
might have to add two (one for WikiPages and one for String-based names -and 
for 3.0, WikiPaths). So go ahead, but be conservative in your estimates on how 
long this might take ;-)

Perhaps a ClassMapping is more appropriate than a property?

> Allow administrators to select the Comparator used for sorting page lists by 
> name
> ---------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-526
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-526
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Localization
>            Reporter: Greg Kable
>            Priority: Minor
>
> 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.

Reply via email to