# New extension: Sorted Sets (Redis)

**URL:** <https://forum.codecrafters.io/t/new-extension-sorted-sets-redis/14439>\
**Category:** Announcements\
**Tags:** challenge:redis\
**Created:** [August 14, 2025, 3:50pm UTC](https://forum.codecrafters.io/t/new-extension-sorted-sets-redis/14439 "2025-08-14T15:50:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [August 14, 2025, 3:50pm UTC](https://forum.codecrafters.io/t/new-extension-sorted-sets-redis/14439/1 "2025-08-14T15:50:12Z")

</div>

The next extension for the Redis challenge is now live: **Sorted Sets**.

A Redis sorted set is a collection of unique strings ordered by score, useful for tasks like leaderboards or rate limiting.

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/8/87af375c50f2cd35edb57aa5a6f08dad08ba2f1f.jpeg)

By the end of this extension, your Redis implementation will support:

- Creating sorted sets and adding members with `ZADD`
- Retrieving a member’s rank with `ZRANK`
- Listing members with `ZRANGE`
- Counting members with `ZCARD`
- Retrieving a member’s score with `ZSCORE`
- Removing members with `ZREM`

Here’s the stage breakdown:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/c/c2e95935102757ff1f80d8adfa60b196380e681c.png)

Please [give this a try](https://app.codecrafters.io/courses/redis/overview) and let us know how it can be improved! @UdeshyaDhungana (author of this extension) and I will be available here to help out with any tester or instruction-related issues.

---

<div class="post-metadata">

**Author:** ![estenv](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/estenv/32/9644_2.png) [@estenv](https://forum.codecrafters.io/u/estenv)\
**Post date:** [August 20, 2025, 5:27pm UTC](https://forum.codecrafters.io/t/new-extension-sorted-sets-redis/14439/2 "2025-08-20T17:27:51Z")

</div>

It was a quick one but I liked it.
