Closed yasaricli closed 5 years ago
the sorting can be made possible in all languages.
https://github.com/gcanti/tcomb-form/blob/master/src/components.js#L55
function sortByText(a, b) { if (a.text < b.text) { return -1 } else if (a.text > b.text) { return 1 } return 0 } sortByText({text: 'z'}, {text: 'İ'}) // -1 // Use localeCompare 'z'.localeCompare('İ') // 1
thanks.
Ping @gcanti
Thanks @yasaricli
you're welcome @gcanti
the sorting can be made possible in all languages.
https://github.com/gcanti/tcomb-form/blob/master/src/components.js#L55
thanks.