Armor sorting: move selected armor around instead of swapping it.

Fixes #7482

When the last item is selected and moved down, it is moved to the front of the list, all other items are unchanged.
Similar when the first item is selected and moved up, it is removed and added to the end of the list.
Previously this would only swap the last and the first entry.