Lior Vernia has uploaded a new change for review.

Change subject: webadmin: Improved implementation of two comparators
......................................................................

webadmin: Improved implementation of two comparators

To use LexoNumericComparator for proper comparison of names.

Change-Id: Ia56c6dd31c7e84e84244717a3cb97d926ccb9d0e
Signed-off-by: Lior Vernia <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Linq.java
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/97/16197/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Linq.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Linq.java
index 9ec922b..018127d 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Linq.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Linq.java
@@ -229,7 +229,7 @@
         @Override
         public int compare(Network x, Network y)
         {
-            return x.getName().compareTo(y.getName());
+            return LexoNumericComparator.comp(x.getName(), y.getName());
         }
     }
 
@@ -297,7 +297,7 @@
 
         @Override
         public int compare(StoragePool x, StoragePool y) {
-            return x.getname().compareTo(y.getname());
+            return LexoNumericComparator.comp(x.getname(), y.getname());
         }
     }
 


-- 
To view, visit http://gerrit.ovirt.org/16197
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia56c6dd31c7e84e84244717a3cb97d926ccb9d0e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to