s1=((IPatch) a1).getDriver().getPatchName((IPatch) a1);; s2=((IPatch) a2).getDriver().getPatchName((IPatch) a2);;
s1=((IPatch) a1).getName(); s2=((IPatch) a2).getName();
        public int compare (Object a1,Object a2)        {            String s1; String s2;            if (field==0)            {                s1=((IPatch) a1).getDriver().getPatchName((IPatch) a1);;                s2=((IPatch) a2).getDriver().getPatchName((IPatch) a2);;            }            else if (field==1)            {                s1=((IPatch) a1).getDate().toLowerCase();                s2=((IPatch) a2).getDate().toLowerCase();            }            else if (field==2)            {                s1=((IPatch) a1).getAuthor().toLowerCase();                s2=((IPatch) a2).getAuthor().toLowerCase();            }            else if (field==3)            {                s1=((IPatch) a1).getDevice().getSynthName();                s2=((IPatch) a2).getDevice().getSynthName();            }            else            {                s1=((IPatch) a1).getDriver().getPatchType();                s2=((IPatch) a2).getDriver().getPatchType();            }            return s1.compareTo (s2);        }