[BUG] fix sort ordering in tests