When using create_itemsInLevel() to programmatically annotate, annotation items end up being ordered in the JSON files in the order they are added and not the chronological order relative to the sound file. This creates a bug in the webApp, such that can be difficult or impossible to select annotation items.
In my case I have a level of type EVENT. When I use the tab to select the next item, the webApp will select the item that was created next, and not the next item in the sound file. Also the highlighted item is not necessarily the one closest to the cursor, which makes it impossible to change or delete items. I suppose the JSON file should be reordered so that the samplePoints are chronological when using create_itemsInLevel().