Skip to content

Commit 7a8c608

Browse files
committed
Merge pull request #4849 from adrien-be/patch-1
Update sorting so it can support internationalization
2 parents 8f53459 + a432607 commit 7a8c608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/services/rowSorter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ module.service('rowSorter', ['$parse', 'uiGridConstants', function ($parse, uiGr
206206
var strA = a.toString().toLowerCase(),
207207
strB = b.toString().toLowerCase();
208208

209-
return strA === strB ? 0 : (strA < strB ? -1 : 1);
209+
return strA === strB ? 0 : strA.localeCompare(strB);
210210
}
211211
};
212212

0 commit comments

Comments
 (0)