Implemented reordering