Reverts sorting by product ID before aggregating because it slows down the query very much without many positive effects