Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Orderlist: keep the correct order when moving multiple items to top o…
…r bottom When multiple items are selected and moved to the top or bottom of an OrderList at the same time, they are moved one by one in a loop until the entire selection has been moved. To make sure that the item at the top of the selection (the selected item that is highest up in the current order) will still be at the top after the selection, we should move items in the right order: move the top item last when inserting at the top, and first when inserting at the bottom. Currently, this order is exactly reversed, meaning the selected items are reversed in those cases. This commit reverses both loop orders to fix this problem
- Loading branch information