Table: sorting breaks for a mix of strings and nulls
See original GitHub issueUsing data from the following query as an example:
select null as x
union all
select '' || s.a % 2 AS x FROM generate_series(1,14) AS s(a)
union all
select null as x
(generates a series of 0,1 values along with two nulls
)
If you try to sort it, it places the nulls in random places.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Javascript Sorting Nulls Wrong In HTML Table - Stack Overflow
I'm using the below JavaScript code to sort my tables alphabetically and numerical. However, it puts rows with ...
Read more >Bug: Table sort not working when there are null values in ...
The String type works as expected. This is the same cause as this issue: Potential bug: Table sorting occasionally not working correctly. Retool ......
Read more >sorting broken if result contains null values #7176 - GitHub
If your result contains null values the sorting breaks with a null pointer exception. Tested with numerical columns.
Read more >Sort Data in a Visualization - Tableau Help
There are many ways to sort data in Tableau. When viewing a visualization, data can be sorted using single click options from an...
Read more >Pivot data from long to wide — pivot_wider • tidyr
pivot_wider( data, id_cols = NULL, id_expand = FALSE, names_from = name, ... to join their values together into a single string to use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👍
(no rush though. just stumbled at this issue and wanted to verify)
@arikfr I guess we can close the issue as it’s already fixed.