Natural number sorting in categories causes problem with timestamps
Open, Needs TriagePublic

Description

Natural numer sorting (T8948) causes problem in maintenance categories using timestamp.

Articles in this categories are usually sorted by {{#time:YmdHis}} and next by {{PAGENAME}}
Natural sorting moves articles beginning with numbers to the last positions

*20161122142200Foo for [[Foo]] vs. 20161122142200123 for [[123]]

This can be easily solved in maintenance templates by adding some char between timestamp and {{PAGENAME}}
https://cs.wikipedia.org/w/index.php?title=%C5%A0ablona:Fakt/dne&diff=prev&oldid=14340896

JAnD created this task.Nov 22 2016, 1:25 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 22 2016, 1:25 PM

This can be easily solved in maintenance templates by adding some char between timestamp and {{PAGENAME}}

So where is the problem?

Aklapper changed the title from "Natural number sorting in categores causes problem with timestamps" to "Natural number sorting in categories causes problem with timestamps".Nov 23 2016, 2:19 PM

@JAnD: Can you please clarify?

JAnD added a comment.EditedDec 5 2016, 10:06 AM

@JAnD: Can you please clarify?

WHen in category articles have sortkeys
*123 - 201601
*Foo - 201602
*Bar - 201603

Now are incorrectly sorted as

  • Foo - 201602
  • Bar - 201603
  • 123 -201601123

(pagename is mixed together with sortkey)

ahmad added a subscriber: ahmad.Dec 10 2016, 3:33 PM

@JAnD: If you want the articles to be sorted by timestamp, you can put the timestamp first in the category sortkey and make sure it is separated from the article name with a space or other separator. It looks like this is already being done on the Czech wiki. Is there any action that you want us to take regarding this issue?