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).
Merge pull request #83 from fuzetsu/master

Only reorder when there is a target