SQL vs Ecto optimization/translation help

Sounds more like you want to ORDER BY instead of grouping. Grouping is primarily for aggregates only and it does not sound like it is what you want. :slight_smile: