We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac2186 commit b5015ccCopy full SHA for b5015cc
web/versioning.js
@@ -45,7 +45,7 @@ function compareV(v1, v2) {
45
return nd;
46
}
47
else {
48
- return v1.suffix.localeCompare(v2.suffix);
+ return -v1.suffix.localeCompare(v2.suffix);
49
50
51
@@ -71,7 +71,7 @@ function initVersions() {
71
72
73
for (var key in vs) {
74
- vs[key].all.sort((v1, v2) => {return -v1.suffix.localeCompare(v2.suffix);});
+ vs[key].all.sort(compareV);
75
vs[key].latest = vs[key].all[0];
76
DOC_SORTED_VERSIONS.push(vs[key].latest);
77
0 commit comments