Revert "a fix in subsorting"

This reverts commit 894e692ccb836070ce13087ea3be4aa815e3c3d5.