package utils;

import java.util.Comparator;

import structures.struct_label;

public class comparator implements Comparator<struct_label>
{

    public int compare(struct_label e1, struct_label e2)
    {

        if (e1.xmin > e2.xmin)
            return 1;
        else if (e1.xmin < e2.xmin)
            return -1;
        else
            return 0;
    }

}