Author: mvitenkov
Date: 2008-05-13 04:49:27 -0400 (Tue, 13 May 2008)
New Revision: 8541
Modified:
trunk/test-applications/jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java
Log:
change comparator
Modified:
trunk/test-applications/jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java
===================================================================
---
trunk/test-applications/jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java 2008-05-13
08:46:26 UTC (rev 8540)
+++
trunk/test-applications/jsp/src/main/java/sortingAndFiltering/SortingAndFiltering.java 2008-05-13
08:49:27 UTC (rev 8541)
@@ -22,7 +22,7 @@
private final Comparator<Data> comparator = new Comparator<Data> () {
public int compare(Data o1, Data o2) {
- if ((o1.getStr1() != null) && (o2.getStr1() != null))
+ if ((o1.getStr1() == null) && (o2.getStr1() == null))
return 0;
else if((o1.getStr1() != null) && (o2.getStr1() == null))
return 1;
Show replies by date