fixed sort test