Skip to content

[Rails5] Rename `sort` methods to `sort_by_attribute`

blackst0ne requested to merge blackst0ne-rails5-rename-sort-methods into master

What does this MR do?

Renames the sort methods of models to sort_by_attribute.

This is needed for migration to Rails 5.0 as in the fifth version Enumerable has been included to ActiveRecord::Relation.
So in Rails 5.0 the Enumerable#sort method is invoked instead of GitLab models' one.

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Migration to Rails 5.0

Screenshots (if relevant)

No.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#14286 (closed) and !12841 (closed)

Edited by blackst0ne

Merge request reports