diff --git a/browser/components/places/content/controller.js b/browser/components/places/content/controller.js index e7fb7b5de7ec..cd6a8b4c56dc 100755 --- a/browser/components/places/content/controller.js +++ b/browser/components/places/content/controller.js @@ -2222,12 +2222,7 @@ PlacesSortFolderByNameTransaction.prototype = { items.push(item); } - function sortItems(a, b) { - var atitle = a.title; - var btitle = b.title; - return (atitle == btitle) ? 0 : ((atitle < btitle) ? -1 : 1); - } - items.sort(sortItems); + items.sort(function (a, b) { return a.title.localeCompare(b.title); }); for (var i = 0; i < count; ++i) this.bookmarks.setItemIndex(items[i].itemId, i);