testing the sort order