add a sort stability functest