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

ui: table view sorts lexicographically when it should sort numerically #13526

Closed
mark-rushakoff opened this issue Apr 19, 2019 · 7 comments
Closed
Assignees
Labels
area/vis Relating to visualization in the UI kind/bug team/ui

Comments

@mark-rushakoff
Copy link
Contributor

mark-rushakoff commented Apr 19, 2019

Here is a screenshot of my raw data. Note that the rightmost numeric column is of type long.

Screen Shot 2019-04-19 at 3 25 54 PM

When rendered as a table, the column appears to be sorted by the string representation of the numbers rather than by the numeric values:

Screen Shot 2019-04-19 at 3 24 42 PM

Running with build 11bfc0b.

@mark-rushakoff mark-rushakoff added the area/vis Relating to visualization in the UI label Apr 19, 2019
@stale
Copy link

stale bot commented Jul 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 23, 2019
@mark-rushakoff
Copy link
Contributor Author

I assume based on #14217 that this issue is still outstanding.

@stale stale bot removed the wontfix label Jul 23, 2019
@stale
Copy link

stale bot commented Oct 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 21, 2019
@stale stale bot removed the wontfix label Oct 21, 2019
@lukevmorris
Copy link
Contributor

lukevmorris commented Nov 19, 2019

Bumping this

Flux table result:

#group,false,false,false
#datatype,string,long,long
#default,_result,,
,result,table,bytes
,,0,132800339
,,0,39665590
,,0,8505848
,,0,6301539
,,0,3709228
,,0,1491019
,,0,1301411
,,0,1279743
,,0,862723
,,0,757414
,,0,328315
,,0,25423
,,0,22234
,,0,22030

When I view the Raw Data, I see the flux table as it appears above.

Screen Shot 2019-11-19 at 12 11 29 PM

When I switch to a Table graph type, I see the following:

Screen Shot 2019-11-19 at 12 08 04 PM

Screen Shot 2019-11-19 at 12 08 11 PM

These appear to be sorted alphabetically instead of numerically.

@lukevmorris
Copy link
Contributor

Related: #15980

@rawkode
Copy link
Contributor

rawkode commented Nov 25, 2019

Just bumped into this problem too. Even though my Flux has sort(), the table view does it's own sorting with string comparison rather than numeric.

@asalem1
Copy link
Contributor

asalem1 commented Mar 6, 2020

This should be resolved in #16235

@asalem1 asalem1 closed this as completed Mar 6, 2020
@asalem1 asalem1 self-assigned this Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vis Relating to visualization in the UI kind/bug team/ui
Projects
None yet
Development

No branches or pull requests

5 participants