Alpha sorting of recent release usage puts 10.* at the bottom rather than top

Created on 20 December 2022, about 2 years ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

On https://www.drupal.org/project/usage/drupal β†’ , in the Recent release usage section at the bottom, the release versions are sorted from highest to lowest, but based on a sorting algorithm (alphabetic?) that puts 10.0.0 at the very bottom instead of very top.

Steps to reproduce

Proposed resolution

Create a version-aware sort for that table, where 10.* would be considered a higher version than 9.*.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Usage statistics

Created by

πŸ‡ΊπŸ‡ΈUnited States effulgentsia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States cellear San Francisco Bay Area

    I came here to report this issue, and to suggest a solution. I'm not familiar with the details about how the release numbers are stored to know if my proposed solution is plausible, so I'll just spit it out and let it be judged.

    I've been spending time studying the D7 releases on the Usage statistics for Drupal core page β†’ , and I noticed that the first nine single-digit releases are mixed in alphabetically with two-digit releases that start with the same digit:

    My proposed solution: add a leading zero to the single-digit releases. That would allow them to sort alphabetically where you would expect to find them.

    (Note that I realize this would set us up for a "Drupal 7.100" bug.)

Production build 0.71.5 2024