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

chore: sorted versions in docs dropdown #6659

Merged
merged 11 commits into from
Jul 4, 2024

Conversation

lexasq
Copy link
Contributor

@lexasq lexasq commented Jul 2, 2024

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

@lexasq lexasq changed the title Alex sort versions Chore sorted versions in docs dropdown Jul 2, 2024
this.previousDocs.push(data[0]);
this.previousDocs = this.previousDocs.concat(data.reverse()).slice(0, -1);
this.previousDocs = data.sort((versionA, versionB) => {
const versionAsNumberA = +versionA.version.split('.').join('');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number(versionA.version.split('.').join('')) would make more sense

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@lexasq lexasq changed the title Chore sorted versions in docs dropdown chore: sorted versions in docs dropdown Jul 2, 2024
@lexasq lexasq requested a review from valorkin July 4, 2024 08:06
@valorkin valorkin merged commit 4a8a35e into valor-software:development Jul 4, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants