Use sort_by when it makes sense