[DT/AS] Add step sorter and sorting for resources