Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
version picker sorting fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Dmytro Kagirov <dmytro27kagirov@gmail.com>
  • Loading branch information
Dmytro27Ind committed Dec 11, 2023
1 parent 356a663 commit c31402a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/website_files/version-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ function sortVersions(a, b) {
const versionA = (a.match(/v\d+(\.\d+)+/) || [])[0];
const versionB = (b.match(/v\d+(\.\d+)+/) || [])[0];

// Handle versions without a version number (e.g., 'develop' and 'latest')
if (!versionA) return 1;
if (!versionB) return -1;

return versionB.localeCompare(versionA);
}

Expand Down

0 comments on commit c31402a

Please sign in to comment.