Problem to order tasks

I would like to order tasks in my gantt with an attribute of the task object (other than id/parent). In this sample ( … basic.html) there is an attribute “order” which seems to be used but I have tried to fill it in my own gantt tasks and tasks are allways ordered by “id” (“order” is not taken in account).
Is there a solution to order my tasks with another field than the id ? (I do not use a connector (php or java) to access datasource, I am building my gantt manually)
Thank you


You can implement sorting in your app. Please, check the article