]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/uvector.cpp
ICU-57132.0.1.tar.gz
[apple/icu.git] / icuSources / common / uvector.cpp
index a5adaa058ee52a844c598c0a7c36ed1025f5157c..d8a4283dd1e5271a7a9b14e7d80f2a73d0f832b9 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 /*
 ******************************************************************************
-* Copyright (C) 1999-2011, International Business Machines Corporation and   *
-* others. All Rights Reserved.                                               *
+* Copyright (C) 1999-2013, International Business Machines Corporation and
+* others. All Rights Reserved.
 ******************************************************************************
 *   Date        Name        Description
 *   10/22/99    alan        Creation.
 ******************************************************************************
 *   Date        Name        Description
 *   10/22/99    alan        Creation.
@@ -552,12 +552,12 @@ void UVector::sort(UElementComparator *compare, UErrorCode &ec) {
 
 
 /**
 
 
 /**
- *  Sort with a user supplied comparator of type UComparator.
+ *  Stable sort with a user supplied comparator of type UComparator.
  */
 void UVector::sortWithUComparator(UComparator *compare, const void *context, UErrorCode &ec) {
     if (U_SUCCESS(ec)) {
         uprv_sortArray(elements, count, sizeof(UElement),
  */
 void UVector::sortWithUComparator(UComparator *compare, const void *context, UErrorCode &ec) {
     if (U_SUCCESS(ec)) {
         uprv_sortArray(elements, count, sizeof(UElement),
-                       compare, context, FALSE, &ec);
+                       compare, context, TRUE, &ec);
     }
 }
 
     }
 }