leikind / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
MIT License
536 stars 215 forks source link

Sorting not working. #307

Closed clubbavi closed 8 years ago

clubbavi commented 8 years ago

Sorting doesn't work if we use .order in the initialize_grid while retrieving data.

@users = initialize_grid(User.where("is_active=true").order("id DESC"))

Any suggestions?

leikind commented 8 years ago

https://github.com/leikind/wice_grid#initial-ordering

clubbavi commented 8 years ago

Thank you.. It worked.