add "smart_sort" option
update Gemfile