Tim Edelmann Posted April 4, 2018 Report Share Posted April 4, 2018 Hey ftrackers, we recently tried to add notes to a task in a sorted order. We read a number of question from a json which looks like this: [ { "index": 1, "content": "Q1" }, { "index": 2, "content": "Q2" }, { "index": 3, "content": "Q3" }, { "index": 4, "content": "Q4" } ] ..and we would like these questions, to appear in the order given by index. But for some reason, we always get the order visible in attachment: ftrack_question_ordering.PNG Could this be the same problem we have with custom attributes being not sorted? Thanks in advance Tim EDIT: The note, which was altered latest is shown upmost automatically, which implies, that we cannot change the order, right? Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted April 5, 2018 Report Share Posted April 5, 2018 22 hours ago, Tim Edelmann said: EDIT: The note, which was altered latest is shown upmost automatically, which implies, that we cannot change the order, right? Yes, the latest replied to note will be at the top. About ingesting them in a sorted manner the problem is likely that they are added too fast or at once. A possible solution is to explicitly set the note['date'] to order them. E.g. by offsetting them in seconds. Link to comment Share on other sites More sharing options...
Tim Edelmann Posted April 5, 2018 Author Report Share Posted April 5, 2018 yeah, adding a 'custom' date manually is a good idea. thanks a lot Tim Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.