Sort resources by path