The ordering of the articles in the ticket view should be ascending based on the field created_at.
Actual behavior:
The ordering for a ticket created via the API looks random. Even though the fields created_at and updated_at has been updated with the correct (ascending) values. The articles has been imported / created in the correct order, so the IDs are also in sequence. This could be verified by requesting the ticket and article data via the API.
Steps to reproduce the behavior:
Enter the rails console and enable import mode with
Create a ticket with state=closed via the API and make sure that the fields created_at and updated_at are filled with the correct historical values.
Add some articles to the newly created ticket via the API and make sure that the fields created_at and updated_at are filled with the correct historical values with ascending order.