mirror of
https://github.com/transmission/transmission.git
synced 2026-04-27 04:04:11 +01: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