CON-342
bug fix in sort subsystem