(trunk web) use String.localeCompare() instead of rolling our own compareTo() function.

This commit is contained in:
Jordan Lee
2011-08-30 07:27:59 +00:00
parent af1d2b76c0
commit c44ce249d2
2 changed files with 1 additions and 12 deletions

View File

@@ -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)