~registry/dhis2-academy/trunk

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/java/org/hisp/dhis/oum/action/organisationunitgroup/GetOrganisationUnitGroupListAction.java

  • Committer: Abyot Asalefew Gizaw
  • Date: 2012-10-12 00:08:27 UTC
  • Revision ID: abyota@gmail.com-20121012000827-qqmmfllx0s5vtkqi
Updating the acadmy trunk with the main DHIS2 trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package org.hisp.dhis.oum.action.organisationunitgroup;
2
2
 
3
3
/*
4
 
 * Copyright (c) 2004-2010, University of Oslo
 
4
 * Copyright (c) 2004-2012, University of Oslo
5
5
 * All rights reserved.
6
6
 *
7
7
 * Redistribution and use in source and binary forms, with or without
33
33
import java.util.Collections;
34
34
import java.util.List;
35
35
 
 
36
import org.hisp.dhis.common.comparator.IdentifiableObjectNameComparator;
36
37
import org.hisp.dhis.organisationunit.OrganisationUnitGroup;
37
38
import org.hisp.dhis.organisationunit.OrganisationUnitGroupService;
38
 
import org.hisp.dhis.organisationunit.comparator.OrganisationUnitGroupNameComparator;
39
39
import org.hisp.dhis.paging.ActionPagingSupport;
40
40
 
41
41
/**
99
99
            organisationUnitGroups = new ArrayList<OrganisationUnitGroup>( organisationUnitGroupService.getOrganisationUnitGroupsBetween( paging.getStartPos(), paging.getPageSize() ) );
100
100
        }
101
101
 
102
 
        Collections.sort( organisationUnitGroups, new OrganisationUnitGroupNameComparator() );
 
102
        Collections.sort( organisationUnitGroups, IdentifiableObjectNameComparator.INSTANCE );
103
103
 
104
104
        return SUCCESS;
105
105
    }