Skip to content

Sorting in filter values #36775

Closed
Closed

Description

Bug description

The same issue as here
#35008

It's about sorting Int values as String in filters
In 6.0.0RC2 it was fixed.
But in 6.0.0 it reproduces again

Screenshots/recordings

Image

Superset version

6.0.0

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Activity

  1. added
    explore:filter
    validation:required
    on Dec 20, 2025
  2. dosubot commented on Dec 20, 2025

    @dosubot

    This is a confirmed regression: integer filter values are sorted as strings (lexicographically) in some Superset versions, so you see "1, 10, 100..." instead of "1, 2, 3..." as expected. The issue was fixed in 6.0.0RC2 (PR #34858), but the fix did not make it into the 6.0.0 final release and the problem reappeared. The regression is tracked in multiple issues and was addressed again in later PRs (#35130, #35155, #35152), which are now merged into the 6.0-bug-fixes branch and master—so the fix will be in RC3 and newer builds (discussion).

    There is no user-level workaround or configuration option for affected versions; the only way to resolve this is to upgrade to a version that includes the fix. If you need a temporary solution, you would have to patch the frontend code or ensure the backend query for filter values sorts numerically, but this is not officially documented or supported.

    For complex sorting, use the filter UI controls and structured format—raw SQL strings for sorting are no longer supported. If you need to sort by a custom order, create a calculated column or metric and sort by that metric in the filter config.

    References:

    To reply, just mention @dosu.


    How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

    Chat with Dosu Open in Cursor Join Discord Share on X

  3. stanislav-dombrovskiy-dp commented on Jan 9, 2026

    @stanislav-dombrovskiy-dp
    Author

    @dosu I don't understand: all mentioned PRs were merged already. All issues were fixed. Can I expect that in 6.0.1 won't have this problem ?
    Or what is the ETA or plan?

  4. dosubot commented on Jan 9, 2026

    @dosubot

    There is currently no official changelog, release branch, or tag for Superset 6.0.1, and no public ETA or release plan has been documented. The integer sorting fix is merged in master and will be included in the next release after 6.0.0, but there’s no confirmation yet about when 6.0.1 will be released or what it will contain. If you need the fix immediately, you’d need to use the latest master or apply the relevant PRs as a patch, but this isn’t officially documented or supported. For now, keep an eye on the Superset releases page for updates.

    To reply, just mention @dosu.


    How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

    Chat with Dosu Open in Cursor Join Discord Share on X

  5. rusackas commented on Jan 12, 2026

    @rusackas
    Member

    @sadpandajoe this is a funky one... I added it to the board for 6.0.1 review.

  6. stasDomb commented on Feb 19, 2026

    @stasDomb

    still present in 6.0.1rc1

  7. stasDomb commented on Mar 13, 2026

    @stasDomb

    Unfortunately, it still present in 6.1.0rc1.

  8. stasDomb commented on Apr 18, 2026

    @stasDomb

    Still present in 6.1.0rc2. Could you please fix it? It's really important, I can't update from a really old version because of this problem

  9. rusackas commented on Jun 19, 2026

    @rusackas
    Member

    This is described as a recurrence of #35008 which was closed out by #34858. Can you check to see if this should be closed as resolved too?

  10. stasDomb commented on Jun 19, 2026

    @stasDomb

    Unfortunately, it's still a problem in 6.1.0 and 6.0.0

  11. added 4 commits that reference this issue on Jul 30, 2026
    8966a1d
    12ee488
    d775586
    7324225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    explore:filtervalidation:required

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions