RhoInc / Webcharts

Reusable, flexible, interactive charts with JavaScript
MIT License
34 stars 6 forks source link

Table: Null values do not sort correctly. #222

Open samussiah opened 5 years ago

samussiah commented 5 years ago

Because null is neither less nor greater than any other value.

jwildfire commented 5 years ago

Where do we want null values? At the bottom in descending at at the top in ascending?

samussiah commented 5 years ago

First would make it obvious that there are null values. Last would make values you probably don't care about appear last. I don't know. Also, sorting fails when the underlying values are of different types, e.g. numeric and character, because sort doesn't coerce type.