data T(sortedby=X);
X=1; output;
X=2; output;
run;
will not set the validated flag in the data set's metadata as seen here:

One must recreate the table using for example proc sort to set this flag. This is hugely wasteful.
The following option would ask SAS to check the sort order as the data is written, in order to avoid this waste:
data T(sortedby=X validatesort);
X=1; output;
X=2; output;
run;