In my Autocomplete I need to show grouped items, but groups have to be sorted non-alphabetically.
As the Autocomplete doesn't have such option, I tried using the serverGrouping option, but I guess I'm doing something wrong.
In fact the list of groups and items is correctly displayed (see attached picture #1), but typing any character in the input shows the NO DATA FOUND message (see attached picture #2 - typing "c" should show "Coffee" and "Cake"). Additionally items sorting doesn't seem to work.
This is the Autocomplete and its DataSource initialization code:
This is the json data returned by the server call:
Why the Autocomplete doesn't seem to work? Am I missing something in the Autocomplete settings, or DataSource settings, or JSON being sent by the server?
And why the sorting of items doesn't work?