VisJS Timeline: sorting items in timeline
问题 I'm using vis-js timeline library for building a timeline. I need to sort the elements in each group. Groups are like in example here. I saw that I can do this using the " order option in the item" like here but I cannot understand how it works. I tried this way: var groups = new vis.DataSet([ {id: 0, content: 'First', value: 1}, {id: 1, content: 'Third', value: 3}, {id: 2, content: 'Second', value: 2} ]); // create a dataset with items var items = new vis.DataSet([ {id: 0, group: 0, content: