Skip to content

Commit

Permalink
Merge branch 'master' of github.com:anykeyh/clear
Browse files Browse the repository at this point in the history
  • Loading branch information
anykeyh committed Sep 24, 2019
2 parents a62cd84 + 9232caa commit 63bbbae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 63bbbae

Please sign in to comment.