You could define a PROC SQL view including an ORDER BY clause and apply PROC EXPORT to this view. Then the sorting will occur during the PROC EXPORT step and without creating a sorted dataset.
Example:
data have;
set sashelp.class(keep=age weight);
run;
proc sql;
create view have_s as
select * from have
order by weight;
quit;
proc export data=have_s
outfile='C:\Temp\want.csv' dbms=csv replace;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!