if by "sort in prepare recipe" you mean the sorting of the columns you can activate by clicking on the column headers, it's not a dataset-wide sort but a display-only thing, only applied to the sample used for designing the Prepare recipe's steps.
there is no "sort step" in a Prepare recipe. The sorting you get from the column headers is for display only, and not limited to the Prepare recipe design screens.
What do you need the sorting for?
In my flow I have a sort recipe and then I have a prepare recipe. So I was wondering if I can do the sort in prepare recipe as well and remove the sort recipe step to save memory or space. Does that make sense ?