public int compare(Object o1, Object o2) { MechSummary ms1 = (MechSummary)o1; MechSummary ms2 = (MechSummary)o2;
public int compare(MechSummary ms1, MechSummary ms2) {
    public int compare(Object o1, Object o2)    {        MechSummary ms1 = (MechSummary)o1;        MechSummary ms2 = (MechSummary)o2;                switch (m_nType) {            case T_CHASSIS :                return ms1.getChassis().compareTo(ms2.getChassis());            case T_MODEL :                return ms1.getModel().compareTo(ms2.getModel());            case T_WEIGHT :                return numCompare(ms1.getTons(), ms2.getTons());            case T_BV :                return numCompare(ms1.getBV(), ms2.getBV());            case T_YEAR :                return numCompare(ms1.getYear(), ms2.getYear());            case T_COST :                return numCompare(ms1.getCost(), ms2.getCost());            default :                return 0;        }    }