Skip to content

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
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