Home Task 5: sorting corrected