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

Add prop to dropdown component to order descending #2001

Open
mjbloch opened this issue May 13, 2024 · 1 comment
Open

Add prop to dropdown component to order descending #2001

mjbloch opened this issue May 13, 2024 · 1 comment
Labels
components Components that are not data viz customer request An Evidence customer has requested this

Comments

@mjbloch
Copy link

mjbloch commented May 13, 2024

Feature Description

Would like a prop on the DropDown component to compliment the order prop to allow for descending order. Dropdowns used to use the same order that the data was sorted in the query, but after recent release dropdowns are now alphabetical (currently on v34.0.1. Would like a prop (call it ascending, orderAscending, or something like that) that accepts a true/false value to determine ascending or descending order.

Goal of Feature

Better organization of options in dropdown - especially useful when dealing with dates and you want the most recent date options at the top.

Current Solution / Workarounds

Don't think there is a work around in current version.

Alternatives

N/A

@mcrascal mcrascal added components Components that are not data viz customer request An Evidence customer has requested this labels May 15, 2024
@mcrascal mcrascal changed the title Add prop to downdown component to order descending Add prop to dropdown component to order descending May 15, 2024
@ItsMeBrianD
Copy link
Member

This was addressed in #2042 - it hasn't been released yet but once it is you will just be able to pass order="column_name desc", the same way you would in a SQL order by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
components Components that are not data viz customer request An Evidence customer has requested this
Projects
None yet
Development

No branches or pull requests

3 participants