Implementing ranking among resources