test the sort