mirror of
https://github.com/transmission/transmission.git
synced 2025-12-22 11:28:32 +00:00
(trunk web) use String.localeCompare() instead of rolling our own compareTo() function.
This commit is contained in:
@@ -358,7 +358,7 @@ Torrent.compareById = function(ta, tb)
|
||||
};
|
||||
Torrent.compareByName = function(ta, tb)
|
||||
{
|
||||
return ta.getCollatedName().compareTo(tb.getCollatedName())
|
||||
return ta.getCollatedName().localeCompare(tb.getCollatedName())
|
||||
|| Torrent.compareById(ta, tb);
|
||||
};
|
||||
Torrent.compareByQueue = function(ta, tb)
|
||||
|
||||
Reference in New Issue
Block a user