Sort the run script