bug_1039, sort test