Changed it to sort on removal and drag

Now it can be removed and it will be sorted by id. Reinitializes the
draggable. Still need to figure out the buttons though.