Fixed weird drag-to-sort but
Simplified the code in the process.
Merge pull request #104 from biola/fix_drag_to_sort

Fixed weird drag-to-sort bug