Page MenuHomePhabricator

Sort namespaces by name (not by internal numbers)
Closed, DuplicatePublic

Description

I noticed there are several places where MediaWiki shows a list of available namespaces, but they are sorted according to their internal number. E.g.:, at
https://en.wikipedia.org/wiki/Special:Watchlist
we have a select box with the following items (in this order):

  • all
  • (Article)
  • Talk
  • User
  • User talk
  • Wikipedia
  • Wikipedia talk
  • File
  • File talk
  • MediaWiki
  • MediaWiki talk
  • Template
  • Template talk
  • Help
  • Help talk
  • Category
  • Category talk
  • Portal
  • Portal talk
  • Book
  • Book talk
  • Education Program
  • Education Program talk
  • TimedText
  • TimedText talk
  • Module
  • Module talk

it is much more intuitive to have it sorted alphabetically, i.e.

  • all
  • (Article)
  • Book
  • Book talk
  • Category
  • Category talk
  • Education Program
  • Education Program talk
  • File
  • File talk
  • Help
  • Help talk
  • MediaWiki
  • MediaWiki talk
  • Module
  • Module talk
  • Portal
  • Portal talk
  • Talk
  • Template
  • Template talk
  • TimedText
  • TimedText talk
  • User
  • User talk
  • Wikipedia
  • Wikipedia talk

Here are some other places where there is a namespace list:
https://en.wikipedia.org/wiki/Special:PrefixIndex
https://en.wikipedia.org/wiki/Special:AllPages
https://en.wikipedia.org/wiki/Special:RecentChanges
https://en.wikipedia.org/wiki/Special:NewPages


Version: 1.21.x
Severity: enhancement

Details

Reference
bz45771

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:22 AM
bzimport set Reference to bz45771.

aravikn wrote:

Could you assign this bug to me?

aravikn wrote:

Could someone mentor me with this bug fixing?

Aravind: If you have _specific_ questions please don't hesitate to ask them either here or on IRC.

aravikn wrote:

Is it okay if I mail you?

I don't see much sense in relying on one person only in private, when there's an unlimited number of people who can help you in public.
The knowledge of the crowd is one of the advantages of free software. :)

aravikn wrote:

Where would I find the code to fix this bug?

I don't think this "bug" should be "fixed".
The current order is much better than a alphabetically sorted one as the most used namespaces are placed first in the list.

Alphabetizing makes some sense to me. I'm used to the current order, but I'm not sure it's best.

The current order is much better than a alphabetically sorted one as the most used namespaces are placed first in the list.

You can sort the "Non-redirects" or "Total" columns at https://en.wikipedia.org/wiki/Wikipedia:Database_reports/Page_count_by_namespace to see what the order of the English Wikipedia namespaces list would be if we used page count as a metric for "most used."

@He7d3r: Is it weird to separate (Article) and Talk? The others are grouped together in pairs.