Skip to content

Commit a432607

Browse files
committed
Update sorting so it can support internationalization, see http://stackoverflow.com/a/26295229/759452
Fix as mentioned in #4811 (comment)
1 parent d2eb7d8 commit a432607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/services/rowSorter.js

Lines changed: 1 addition & 1 deletion
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)