Ordered List is an extension for Active Record that allows you to sort and reorder records in your database. It is similar to acts_as_list, but uses a more advanced algorithm based on binary tree paths to achieve greater flexibility and improve performance.
Ordered List is currently a work in progress and is not suitable for production use yet.
In your Gemfile:
gem "orderedlist"
In your model:
class Foo < ActiveRecord::Base
acts_as_ordered_list
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
https://github.com/harvesthq/ranked-model https://github.com/shuber/sortable https://github.com/codegram/resort https://github.com/12spokes/acts_as_restful_list
Ordered List is copyright (c) 2012 Rolf Timmermans
Ordered List is released under the MIT license.