Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#41669 closed defect (bug) (wontfix)

Numbering Incorrect for taxonomies

Reported by: anthonycamilleri's profile anthonycamilleri Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:

Description

When taxonomies use numbers in their title, and the list is ordered alphabetically, they come out in the following order:
1
10
11
2
20
21

Resolution should lead to proper sorting of numbered tags.

Attachments (1)

Clipboard01.jpg (104.3 KB) - added by anthonycamilleri 7 years ago.
Screenshot of Bug

Download all attachments as: .zip

Change History (2)

@anthonycamilleri
7 years ago

Screenshot of Bug

#1 @johnbillion
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version trunk deleted

Thanks for the report @anthonycamilleri, and welcome to WordPress Trac.

WordPress uses MySQL's sorting under the hood, and this sorting is correct from a technical point of view, although it is incorrect from a natural language point of view.

In addition, a complication arises once you consider localisation. The sorting algorithm would need to take into account decimal points and thousands separators, which could be either commas or periods depending on the locale.

I think this sort of use case is not really applicable in almost every case, and not really technically possible without a disproportionately high amount of effort.

Closing as wontfix, unless someone really wants to try to fix this.

Note: See TracTickets for help on using tickets.