std sort test working