@@ -600,7 +600,7 @@ namespace fcpp {
600600 }
601601#endif
602602
603- // Sorts the vector in place in descending order, when its elements support comparison by std::greater_equal [>= ] (mutating).
603+ // Sorts the vector in place in descending order, when its elements support comparison by std::greater [>] (mutating).
604604 //
605605 // example:
606606 // fcpp::vector numbers({3, 1, 9, -4});
@@ -610,15 +610,15 @@ namespace fcpp {
610610 // numbers -> fcpp::vector({9, 3, 1, -4});
611611 vector& sort_descending ()
612612 {
613- return sort (std::greater_equal <T>());
613+ return sort (std::greater <T>());
614614 }
615615
616616#ifdef PARALLEL_ALGORITHM_AVAILABLE
617617 // Performs the `sort_ascending` algorithm in parallel.
618618 // See also the sequential version for more documentation.
619619 vector& sort_descending_parallel ()
620620 {
621- return sort_parallel (std::greater_equal <T>());
621+ return sort_parallel (std::greater <T>());
622622 }
623623#endif
624624
@@ -694,7 +694,7 @@ namespace fcpp {
694694 }
695695#endif
696696
697- // Sorts its elements copied and sorted in descending order, when its elements support comparison by std::greater_equal [>= ] (non-mutating).
697+ // Sorts its elements copied and sorted in descending order, when its elements support comparison by std::greater [>] (non-mutating).
698698 //
699699 // example:
700700 // const fcpp::vector numbers({3, 1, 9, -4});
@@ -704,15 +704,15 @@ namespace fcpp {
704704 // sorted_numbers -> fcpp::vector({9, 3, 1, -4});
705705 [[nodiscard]] vector sorted_descending () const
706706 {
707- return sorted (std::greater_equal <T>());
707+ return sorted (std::greater <T>());
708708 }
709709
710710#ifdef PARALLEL_ALGORITHM_AVAILABLE
711711 // Performs the `sorted_descending` algorithm in parallel.
712712 // See also the sequential version for more documentation.
713713 [[nodiscard]] vector sorted_descending_parallel () const
714714 {
715- return sorted_parallel (std::greater_equal <T>());
715+ return sorted_parallel (std::greater <T>());
716716 }
717717#endif
718718
0 commit comments