Skip to content

SortByColumns( [Float(1), Float(3), Float(2)], Value, [3,2,1] ) does not work #2607

Description

We should be able to mix/match decimal and float numbers in the order table argument.

Some examples:

  • SortByColumns( [{A:1}, {A:3}, {A:2}], A, [3,2,1] ) - simple case, it works fine
  • SortByColumns( [{A:Float(1)}, {A:Float(3)}, {A:Float(2)}], A, [3,2,1] ) - mixing decimal / floats: doesn't work (compile-time error)
  • SortByColumns( [{A:Float(1)}, {A:Float(3)}, {A:Float(2)}], "A", [3,2,1] ) - same as above, with column name as a literal string
  • SortByColumns( [{A:Float(1)}, {A:Float(3)}, {A:Float(2)}], If(true,"A"), [3,2,1] ) - it compiles, but we get an incorrect result

Activity

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