reorder on modal close