Page MenuHomePhabricator

Add natural sort order to Special:AllPages
Open, Needs TriagePublicFeature

Description

Feature summary:
Special:AllPages (Special:Index in French) has a pure alphabetical order in which "n11" would be sorted after "n1" and before "n2".

Adding natural sort order to Special:AllPages in order to get in the order "n1", "n2", "n11".

See natsort.php.

Use case(s):
For instance Wikipédia:AbuseFilter/Messages d'avertissement includes {{Spécial:Index/MediaWiki:Abusefilter-warning}}.

Would it be possible to get {{Spécial:Index/MediaWiki:Abusefilter-warning|sort=natsort}} ?

Benefits:

  1. More human-friendly.

Event Timeline

Reedy renamed this task from Add natural sort order to Special:Index to Add natural sort order to Special:AllPages.Apr 5 2024, 3:29 PM
Reedy updated the task description. (Show Details)

Using natsort for the result shown on Special:Allpages could be wrong, when there are more items to shown and the first page ends on n2 and the next page starts with n11.

See also T32753: Use correct sorting for page name ordered listing special pages for another sorting problem different to the database.