diff --git a/README.md b/README.md index 6f429b3..d001e86 100644 --- a/README.md +++ b/README.md @@ -279,22 +279,6 @@ classNames: { Usage: Classes added to HTML generated by Choices. By default classnames follow the [BEM](http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/) notation. -### sortFunction -Type: `Function` Default: - -```js -(a, b) => { - const labelA = (a.label || a.value).toLowerCase(); - const labelB = (b.label || b.value).toLowerCase(); - if (labelA < labelB) return -1; - if (labelA > labelB) return 1; - return 0; -} -``` - -Input types affected: `select-one`, `select-multiple` - -Usage: Function to sort options and groups. By default options and groups are sorted alphabetically. ### callbackOnInit Type: `Function` Default:`() => {}`