test for Sort