mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Use natural sorting in WebUI
Also change case sensitivity to the default of 'sort' mode. PR #20264.
This commit is contained in:
@@ -179,7 +179,8 @@ window.qBittorrent.Misc = (function() {
|
||||
return escapedString;
|
||||
};
|
||||
|
||||
const naturalSortCollator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator#parameters
|
||||
const naturalSortCollator = new Intl.Collator(undefined, { numeric: true, usage: 'sort' });
|
||||
|
||||
const safeTrim = function(value) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user