sort resources and categories alphabetically