almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

How to sort nestedGroups? #4178

Open mjelecevic opened 5 years ago

mjelecevic commented 5 years ago

Hello,

I have a problem with nestedGroups. I sort the array before the items and the nestedGroups are created but even then for some reason I'm getting the first item on the last position in the timeline.

screen shot 2018-10-29 at 16 02 48

Here is a screenshot of my problem. The activity_9 item need to be before the activity_10 item. And I'm confused because in the groups above the order of the nestedGroups is good. Can anyone help me please. Thank you.

mojoaxel commented 5 years ago

Please provide a minimal code example that demonstrates your issue. We recommend using jsbin for that.