Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make order in the sorted set functions more explicit #235

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

nand4011
Copy link
Contributor

change the order argument in the sorted set functions to explicitly take SORT_ASC and SORT_DESC, and treat other values as ascending. This replaces the previous logic where SORT_DESC or lower was descending, and SORT_ASC or higher was ascending. Using built-in constants in a comparison was confusing.

change the order argument in the sorted set functions to explicitly take
SORT_ASC and SORT_DESC, and treat other values as ascending. This
replaces the previous logic where SORT_DESC or lower was descending, and
SORT_ASC or higher was ascending. Using built-in constants in a
comparison was confusing.
Copy link
Collaborator

@malandis malandis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd make “any other values “ an error. We can change that later.

@nand4011 nand4011 merged commit 702897c into main Oct 19, 2024
5 checks passed
@nand4011 nand4011 deleted the fix-order branch October 19, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants