This is needed because we use  a group_by in this line and the default scope orders the stuff differently. Without this, postgres throws an error because of the "more correct" grouping behaviour