v.22.10Bug Fix

DISTINCT with function in sorting key causes LOGICAL_ERROR

DISTINCT in order fails with LOGICAL_ERROR if first column in sorting key contains function. #42186 (Igor Nikonov).