sort list of resources in listing view