jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1212798 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java
Date Sat, 10 Dec 2011 14:07:40 GMT
Author: sebb
Date: Sat Dec 10 14:07:40 2011
New Revision: 1212798

URL: http://svn.apache.org/viewvc?rev=1212798&view=rev
Log:
Case-insensitive sorting

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java?rev=1212798&r1=1212797&r2=1212798&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/MenuFactory.java Sat Dec 10 14:07:40
2011
@@ -28,6 +28,7 @@ import java.util.HashMap;
 import java.util.HashSet;
 import java.util.LinkedList;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 import java.util.Set;
 
@@ -673,7 +674,8 @@ public final class MenuFactory {
     private static class MenuInfoComparator implements Comparator<MenuInfo>, Serializable
{
         private static final long serialVersionUID = 1L;
         public int compare(MenuInfo o1, MenuInfo o2) {
-              return o1.getLabel().compareTo(o2.getLabel());
+              return o1.getLabel().toLowerCase(Locale.ENGLISH)
+          .compareTo(o2.getLabel().toLowerCase(Locale.ENGLISH));
         }
     }
 



Mime
View raw message