Introduction
ZRANK and ZREVRANK help you find the position of an item in a sorted list, so you know where it stands compared to others.
You want to see a player's rank in a game leaderboard.
You need to find the position of a product in a list sorted by price.
You want to check the order of tasks by priority in a to-do list.
You want to know the rank of a student based on their score.
You want to find the position of a word in a sorted dictionary.