JANITORIAL: Add comment about the stability of Common::sort.

svn-id: r51522
This commit is contained in:
Johannes Schickel 2010-07-30 23:24:22 +00:00
parent e29d6e681a
commit 8e8023d7cc

View File

@ -197,6 +197,10 @@ T sortPartition(T first, T last, T pivot, StrictWeakOrdering &comp) {
/**
* Simple sort function, modeled after std::sort.
* It compares data with the given comparator object comp.
*
* Like std::sort this is not guaranteed to be stable.
* Actually as the time of writing our implementation
* is unstable.
*/
template<typename T, class StrictWeakOrdering>
void sort(T first, T last, StrictWeakOrdering comp) {