package net.java.main.comparators;

import net.java.main.models.units.Unit;

import java.util.Comparator;

public class UnitComparatorByName implements Comparator<Unit> {
    @Override
    public int compare(Unit unit1, Unit unit2) {
        return unit1.getName().compareTo(unit2.getName());
    }
}
