Sorted files caselessly
authorJamie Cameron <jcameron@webmin.com>
Mon, 14 May 2007 18:45:08 +0000 (18:45 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 14 May 2007 18:45:08 +0000 (18:45 +0000)
file/CHANGELOG
file/Makefile
file/QuickSort.java

index f0f688d..dc57bec 100644 (file)
@@ -34,3 +34,4 @@ Replaced the HTMLarea widget for editing .html files with Xinha.
 ---- Changes since 1.340 ----
 When editing an HTML file, the <head> section is preserved.
 Added a link in the HTML editor window to swich to plain text mode.
+Files in the right-hand list are now sorted case-insensitively.
index db71104..5c5c394 100644 (file)
@@ -1,4 +1,4 @@
 file.jar:              FileManager.java Util.java
-                       CLASSPATH=/usr/local/netscape7/plugins/java2/lib/javaplugin.jar:. javac -target 1.1 *.java
+                       CLASSPATH=/usr/local/netscape7/plugins/java2/lib/javaplugin.jar:. javac -target 1.2 -source 1.2 *.java
                        jar cf file.jar *.class
                        [ -d "../zomos-virtual" ] && jar cf ../zomos-virtual/file.jar *.class
index 9f8858e..2f562ed 100644 (file)
@@ -25,7 +25,7 @@ public class QuickSort
     protected static int compare(RemoteFile a, RemoteFile b) {
        long rv = 0;
        if (col == 1)
-               rv = a.name.compareTo(b.name);
+               rv = a.name.toLowerCase().compareTo(b.name.toLowerCase());
        else if (col == 2)
                rv = a.size - b.size;
        else if (col == 3)