Modification and sorting of resources