Pivot table default row order

Hi,

I am having an issue with the Pivot table. When I add the rows I want to display in the Pivot, they seem to be out of order. I was expecting them to be ordered by string.

Currently, I am displaying a list of countries, but they aren’t displaying in alphabetical order by default.

Is there some type of option to make this work?

Thanks.

Hi,

I was expecting them to be ordered by string.

Pivot does not sort rows. You need to sort data before they are loaded.

The other solution could be $sort scheme usage:

view: "pivot",
scheme:{
   $sort:{
	by:"country",
	dir: "acs",
	as:"string"
   }
},

Could you please elaborate on ‘You need to sort data before they are loaded.’

Thanks

I meant that you can load sorted data.

I tried loading a sorted data. Didnt worked. Please Help!

@vivekghatala

Can you please provide a snippet of your implementation? As a base, you can use the following example: https://webix.com/snippet/7e9a7c22