Daniel Erez has posted comments on this change. Change subject: webadmin: sorting DC tabs ......................................................................
Patch Set 1: (1 comment) http://gerrit.ovirt.org/#/c/28225/1/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/comparators/CompoundEntityComparator.java File frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/comparators/CompoundEntityComparator.java: Line 46: * Get the special fall-back comparator as defined in the sub class. Use the {@code Linq} comparator if Line 47: * available or maybe create a comparator with the GUID field if there is no {@code Linq} comparator. Line 48: * @return The fall-back comparator. Line 49: */ Line 50: protected abstract Comparator<E> getEntityComparator(); > Any suggestion on how to do that, I would love if that was the case. Maybe simply something like: public int compare(E o1, E o2) { return o1.hashCode() - o2.hashCode(); } -- To view, visit http://gerrit.ovirt.org/28225 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id95272bd4594a66611c11aaa690d44d88b082b49 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alexander Wels <aw...@redhat.com> Gerrit-Reviewer: Alexander Wels <aw...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches