Lab3 sort problem