diff --git a/manual/querying/the-collection-object/filter-the-query-1/ordering.md b/manual/querying/the-collection-object/filter-the-query-1/ordering.md index de1a1ff69..8b8741282 100644 --- a/manual/querying/the-collection-object/filter-the-query-1/ordering.md +++ b/manual/querying/the-collection-object/filter-the-query-1/ordering.md @@ -3,7 +3,7 @@ Ordering of the collection can be made by using `order_by` method, while Group by is done via `group_by` : ```ruby -User.query.order_by(last_name: "ASC", first_name: "ASC").each do |hash| +User.query.order_by(last_name: "ASC", first_name: "ASC").each do |usr| puts "#{usr.first_name} #{usr.last_name}" end ```