Skip to content

[Bug]: Sorting an attribute table column with infinities or mixed values can order it wrongly #3483

Done

Description

@jgregoriorincon

The attribute table sorts a column with Value's own order (crates/ui-egui/src/table.rs), which is not a total order: a non-finite float compares as its shown text, and a field mixing numbers and text compares across kinds. Such a column can come out in the wrong order, and Rust's sort may panic on a comparison like this. Expected: one order whatever the rows' arrangement, as rustgis_data::value::cmp_values gives (added by #3479). Found by reading the code; not reproduced in the app.

Activity

  1. jgregoriorincon commented on Nov 30, 2026

    @jgregoriorincon
    ContributorAuthor

    I'm taking this one.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions