Added solution for reorder