You don't need all, and you should use `order` to do sorting in SQL instead of Ruby. Ruby is slow.