Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version list seems entirely random. Could it be properly sorted? #49

Open
joshgoebel opened this issue Jun 6, 2021 · 2 comments
Open
Labels
enhancement New feature or request hacktoberfest

Comments

@joshgoebel
Copy link

Description

The version sorting seems to have no rhyme or reason.

Steps to reproduce

Expected behavior

The order would be newest first, followed by older releases in release (or at least version order). IE something like:

  • 11.0.1
  • 11.0.0
  • 11.0.0-beta2
  • 11.0.0-beta1
  • 10.7.3
  • 10.7.2
  • 10.7.2-beta0
  • 10.x ...
  • 9.x ...
  • 8.x ...

Screenshots

Screen Shot 2021-06-05 at 11 08 29 PM

Screen Shot 2021-06-05 at 11 08 36 PM

@MattIPv4
Copy link
Member

MattIPv4 commented Jun 6, 2021

👋 The website currently does not sort the versions at all, and relies on what is returned by the cdnjs API, and ultimately the KV store that has all the library metadata.

This can be seen if you request the library from the API: https://api.cdnjs.com/libraries/highlight.js?fields=versions
I'll transfer this over to the API repo so that folks can look at potentially adding sorting there.

@MattIPv4 MattIPv4 transferred this issue from cdnjs/static-website Jun 6, 2021
@joshgoebel
Copy link
Author

@MattIPv4 Thanks!

@MattIPv4 MattIPv4 added enhancement New feature or request hacktoberfest labels Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants