allow aggregate functions in sort specification
Merge remote-tracking branch 'upstream/develop' into PLFM-3111
Merge pull request #1645 from marcel-blonk/PLFM-3111

allow aggregate functions in sort specification