Plain reorder function.