MT#7119 remove redundant collection sort

(cherry picked from commit 1b0f0ead8f7a547dd615afdc70378890a59940cc)