Pivot table zero sort - #8976
Conversation
Co-authored-by: ericokuma <ericokuma@users.noreply.github.com>
|
Cursor Agent can help with this pull request. Just |
|
@djbarnwal : Please verify that we are honoring the data type returned by the aggregation API, If it returns string then lexicographical sorting, If a user explicity adds a CAST to number in a dimension, it should return a number and then UI should sort it numerically. |
|
Closing as stale. The fix also belongs at a different layer. Re-sorting client-side over a result that was fetched top-100-by-measure-descending produces gapped orderings for dimensions with more than 100 values, and silently overrides measure ordering for any dimension whose values look numeric. The codebase already has the right pattern: time dimensions get a dimension-ascending |
Fixes ENG-1038 by ensuring numeric-like dimension values in pivot table column axes are sorted numerically (e.g.,
0appears before1, not between5and6).Previously, these values were treated as strings, leading to incorrect ordering. This change introduces a utility to numerically sort column dimension axes only when all values are numeric-like, preserving existing behavior for categorical dimensions and row sorting.
Checklist:
Linear Issue: ENG-1038