Page MenuHomePhabricator

Numerical sorting
Closed, ResolvedPublic

Description

This card tracks a proposal that's currently part of the Community Wishlist Survey: https://meta.wikimedia.org/wiki/2015_Community_Wishlist_Survey

The Wishlist Survey voting phase lasts until Dec 14th. After the voting has concluded, the top proposals will form the backlog for the Community Tech team to investigate and address.

See also T8948: Natural number sorting in category listings, which may overlap/duplicate.

Proposal:

Names containing numerals (or with numeric sort-keys) are presently sorted in alphabetical/ASCII order, apparently being treated like any other character: for example “100” comes before “17” but after “10”. This makes a mess of categories for things with serial numbers, like asteroids and street addresses, unless they’re given sort-keys with zero-padded numbers—very tedious. Would it be possible to parse names for sorting by reading any consecutive numerals as digits of a decimal number, instead of just character-by-character, so as to sort by numeric value instead? Even my antique Mac’s Finder does something like this with file and directory names, so it can’t be that hard! ;)

Odysseus1479 (talk) 05:12, 18 November 2015 (UTC)

https://meta.wikimedia.org/wiki/2015_Community_Wishlist_Survey/Categories#Numerical_sorting

Event Timeline

DannyH raised the priority of this task from to Needs Triage.
DannyH updated the task description. (Show Details)
DannyH subscribed.

Definitely a dupe of T8948. I'll leave it to Community Tech to merge if they want to, though.

DannyH claimed this task.

Okay, I'll close this and use the other ticket instead. Thanks