File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ import "choices.js/public/assets/styles/choices.css";
169169 resetScrollPosition: true ,
170170 shouldSort: true ,
171171 shouldSortItems: false ,
172- sorter : () => { ... } ,
172+ sorter : (a , b ) => sortByAlpha ,
173173 shadowRoot: null ,
174174 placeholder: true ,
175175 placeholderValue: null ,
@@ -609,7 +609,7 @@ const example = new Choices(element, {
609609 sorter : function (a , b ) {
610610 return b .label .length - a .label .length ;
611611 },
612- };
612+ }) ;
613613```
614614
615615### placeholder
@@ -774,7 +774,7 @@ Return type must be safe to insert into HTML (ie use the 1st argument which is s
774774``` js
775775const example = new Choices (element, {
776776 valueComparer : (a , b ) => value .trim () === b .trim (),
777- };
777+ }) ;
778778```
779779
780780### labelId
You can’t perform that action at this time.
0 commit comments