You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guys, I reproduced the problem, and the ordering is not being maintained. I discovered that the issue is due to using a Hashtable instead of a LinkedHashMap when returning the results to the front end.
As Hashtable does not maintain the insertion order, it returns the list similarly. I've created a PR that solves this problem.
Activity
kiranchavala commentedon Feb 22, 2023
@borisstoyanov please add the tags for this issue
borisstoyanov commentedon Feb 23, 2023
@kiranchavala are you sure this is an API issue, on first glance it seems like ui/display issue (might be wrong) ?
kiranchavala commentedon Feb 24, 2023
@borisstoyanov it could be API issue as 2 templates/iso can have the same sort_key field in the database, which can lead into issues
davidjumani commentedon Mar 14, 2023
Unrelated to the UI as the API call is correctly made but the results are not sorted
yadvr commentedon May 8, 2023
@shwstppr we need to check if it's the UI or API that's broken or re-test and close if we can't rperoduce. Certinaly works for me in 4.17.2.
CharlesQueiroz commentedon Aug 10, 2023
Guys, I reproduced the problem, and the ordering is not being maintained. I discovered that the issue is due to using a Hashtable instead of a LinkedHashMap when returning the results to the front end.
As Hashtable does not maintain the insertion order, it returns the list similarly. I've created a PR that solves this problem.
Here: #7844
If anyone could take a look, I'd appreciate it.
weizhouapache commentedon Aug 16, 2023
fixed via #7844