Reputation: 773
Hi i have a problem with sorting in autocomplete column type. When i open dropdown for all items without searching anything i get results sorted as i wanted, but when i start typing into cell i get results but they are sorted from shortest string to longest string. Is it possible to disable this sorting and get results sorted the same way as i provide them to process
function?
Example here: http://fiddle.jshell.net/wj5vdnt5/3/
when i don't type anything i have sorted correct way
when i start typing sorting from shortest tot longest
Upvotes: 0
Views: 372
Reputation: 1288
Yes, it's possible. Just disable sortByRelevance
for your autocomplete cell type.
columns: [
{
type: 'autocomplete',
source: [ ... ],
sortByRelevance: false
}
]
Upvotes: 1