added sort test function exercise