revert the sort map for reset