only reorder when there is a target

Fixes disappearing tabs, previously the tab was being removed from the
tab array and disappearing from the UI when sorted since the "from" and
"onto" were the same (itself).