Sort a list of numbers and set the order upon drag and drop