I'm trying to create a drop down list with grouping where I custom sort the data by group in a non-alphabetical way. I've created a sort function that I run on the data before I pass it to the Kendo DataSource and if I output the array to the console at that point the data is in the correct order. Once I create the Kendo DropDownList though it seems to break the sort and puts back to alphabetical order. I further tested things by turning grouping off on the drop down and in that case the drop down displays the data in the correct order as sorted by my sort function. Any ideas?
The data is an array of objects that look like:
The sort function is
The function to build the drop down is
which is then called by