Use String.prototype.localeCompare as per your example: list.sort(function (a, b) { return ('' + a.attr).localeCompare(b.attr); }).
確定! 回上一頁