:reverse was ignored when prefix sorting by version (#9280)

This commit is contained in:
Cameron Fischer 2025-10-23 07:03:35 -04:00 committed by GitHub
parent b061f90f87
commit b5153c0066
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -1049,7 +1049,7 @@ exports.makeCompareFunction = function(type,options) {
return compare(dateA,dateB);
},
"version": function(a,b) {
return $tw.utils.compareVersions(a,b);
return compare($tw.utils.compareVersions(a,b),0);
},
"alphanumeric": function(a,b) {
if(!isCaseSensitive) {