package beaform.gui.formulaeditor;

import java.util.Comparator;

import beaform.entities.Tag;

/**
 * This class can compare Tag objects.
 *
 * @author steven
 *
 */
public class TagComparator implements Comparator<Tag> {

	@Override
	public int compare(Tag o1, Tag o2) {
		return o1.getName().compareTo(o2.getName());
	}

}
package beaform.gui.formulaeditor;

import java.io.Serializable;
import java.util.Comparator;

import beaform.entities.Tag;

/**
 * This class can compare Tag objects.
 *
 * @author steven
 *
 */
public class TagComparator implements Comparator<Tag>, Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 6949518937805857985L;

	@Override
	public int compare(Tag o1, Tag o2) {
		return o1.getName().compareTo(o2.getName());
	}

}
Make the TagComparator seriable