Unitlist sorting behaviour

Hello,

I cant understand the behaviour of sorting the groups in a unitlist.

http://webix.com/snippet/ad3e9610

In the snippet, the order of groups is OK if I return an integer from uniteBy but not if I return
a string. I mean, group order is wrong, item order inside groups is always fine.
Is this expected behaviour?

Also, is there a way to use different property for the group label and return a different property in uniteBy?

Thank you

The sorting scheme is defined like this:

scheme:{
   $sort:{
      by:"title",
      dir: 'asc'
   }
},

I.e. your data is grouped by subvalue_str but sorted by title. You just need to change the value of the by parameter.

Check the correct snippet: http://webix.com/snippet/53c4be83