fix sort order in test