Add `#tree?` predicate method

Used to simplify whether or not the sort method is tree or list.
Simplify sort URL path

Use the current resource's `sort` action, which handles nested and
non-nested resources.
Merge pull request #15 from zorab47/fix-sort-routes-for-nested-resources
Simpler sort path for index_as_block