/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plcalc;

import java.util.*;
import java.lang.reflect.Field;

/**
 *
 * @author lutusp
 */
public class MyFieldsComparator implements Comparator {

    public int compare(Object o1, Object o2) {
        String s1 = ((Field) o1).getName();
        String s2 = ((Field) o2).getName();
        return s1.compareTo(s2);
    }
}
