dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40669
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20663: IdentifiableObject, sorting on display name
------------------------------------------------------------
revno: 20663
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-10-13 09:44:48 +0200
message:
IdentifiableObject, sorting on display name
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseIdentifiableObject.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseIdentifiableObject.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseIdentifiableObject.java 2015-10-05 17:45:17 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseIdentifiableObject.java 2015-10-13 07:44:48 +0000
@@ -161,7 +161,7 @@
@Override
public int compareTo( IdentifiableObject object )
{
- return name == null ? ( object.getName() == null ? 0 : -1 ) : name.compareTo( object.getName() );
+ return name == null ? ( object.getDisplayName() == null ? 0 : -1 ) : name.compareTo( object.getDisplayName() );
}
// -------------------------------------------------------------------------