heavyai / heavyai-crossfilter

JavaScript library for exploring large multivariate datasets in the browser.
Other
51 stars 20 forks source link

[FE-8908] Fix `NULLS LAST` usage #88

Closed int3h closed 5 years ago

int3h commented 5 years ago

In an ORDER BY... statement in omnisql, NULLS LAST needs to be suffixed to every ordering expression. For example, ... ORDER BY foo DESC NULLS LAST, bar DESC NULLS LAST. However, currently, crossfilter only adds NULLS LAST to the end of the final ordering expression.

This was causing errors where some charts were seeing incorrect rendering because the null data was coming up first. This commit fixes that to properly add NULLS LAST to every ordering expression.

Merge Checklist

:wrench: Issue(s) fixed:

:smoking: Smoke Test

:ship: Merge