jbox-web / ajax-datatables-rails

A wrapper around DataTable's ajax methods that allow synchronization with server-side pagination in a Rails app
MIT License
586 stars 228 forks source link

Order NULL values last #239

Closed natebird closed 7 years ago

natebird commented 7 years ago

This is a change to the order query to always order NULL values last. The SQL is generic.

ajahongir commented 7 years ago

is this solution for all sql bd?

n-rodriguez commented 7 years ago

Hi! Thanks for your patch! Can you please add a test that covers this case? Also, it would be nice if this behavior could be parameterized and not the default behavior.

natebird commented 7 years ago

Yep! I'll see what I can do. Thanks!

natebird commented 7 years ago

Closing in preference to #242