A sort expression for the {0} {1}' uses aggregate function First, Last or Previous. These aggregate functions cannot be used ...