add test for Sort