[PATCH] fix lib/sort regression test