While reviewing search sorting, a custom sort returns different orders repeatedly. Which action fixes it, and which check proves it worked?
Answer options
- A. Make the comparator transitive
- B. Test equal and reversed pairs
- C. Use rank selection instead of full sorting
- D. Compare the midpoint and discard half