Tweaked sort test