// Copyright (c) 2009-2010 by the projectusus.org contributors // This software is released under the terms and conditions // of the Eclipse Public License (EPL) 1.0. // See http://www.eclipse.org/legal/epl-v10.html for details. package org.projectusus.core.internal.proportions.model; import java.util.Comparator; import org.projectusus.core.basis.CodeProportion; class MetricsComparator implements Comparator<CodeProportion> { public int compare( CodeProportion left, CodeProportion right ) { return left.getMetricLabel().compareTo( right.getMetricLabel() ); } }