OSDN Git Service

Changed text sorting to be case insensitive to prevent ascii sorting.
authorRandy Baumgarte <randy@fbn.cx>
Mon, 26 Sep 2011 16:27:38 +0000 (12:27 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Mon, 26 Sep 2011 16:27:38 +0000 (12:27 -0400)
src/cx/fbn/nevernote/filters/NoteSortFilterProxyModel.java

index d92c820..8c0ca28 100644 (file)
@@ -99,7 +99,7 @@ public class NoteSortFilterProxyModel extends QSortFilterProxyModel {
                if (leftData instanceof String && rightData instanceof String) {\r
                        String leftString = (String)leftData;\r
                        String rightString = (String)rightData;\r
                if (leftData instanceof String && rightData instanceof String) {\r
                        String leftString = (String)leftData;\r
                        String rightString = (String)rightData;\r
-                       return leftString.compareTo(rightString) < 0;\r
+                       return leftString.toLowerCase().compareTo(rightString.toLowerCase()) < 0;\r
                }\r
                \r
                return super.lessThan(left, right);\r
                }\r
                \r
                return super.lessThan(left, right);\r