Provides sortable tree behavior to active_record models.