Adds drag sorting functionality - thx Lili and Aaron