match user sort to website and client (#882)

This commit is contained in:
Kyler Li
2024-08-27 18:54:00 -07:00
committed by GitHub
parent dd14048936
commit 6ac1a6570b

View File

@@ -9582,28 +9582,12 @@ speechSynthesis.getVoices();
// ascending
var compareByName = function (a, b) {
var A = String(a.name).toUpperCase();
var B = String(b.name).toUpperCase();
if (A < B) {
return -1;
}
if (A > B) {
return 1;
}
return 0;
return a.name.localeCompare(b.name);
};
// ascending
var compareByDisplayName = function (a, b) {
var A = String(a.displayName).toUpperCase();
var B = String(b.displayName).toUpperCase();
if (A < B) {
return -1;
}
if (A > B) {
return 1;
}
return 0;
return a.displayName.localeCompare(b.displayName);
};
// descending