请各位高人指点一下为何以下代码不能实现sort
package MyTeacher;public interface Comparable {
public int compareTo(Object o);
}package MyTeacher;import java.util.*;
public class MyTeacher implements Comparable {
public int no;
public String name;
public int age;
public String seminary;
public MyTeacher() {
super();
// TODO Auto-generated constructor stub
}
public MyTeacher(int no, String name, int age, String seminary) {
super();
// TODO Auto-generated constructor stub
this.no = no;
this.name = name;
this.age = age;
this.seminary = seminary;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public long getNo() {
return no;
}
public void setNo(int no) {
this.no = no;
}
public String getSeminary() {
return seminary;
}
public void setSeminary(String seminary) {
this.seminary = seminary;
}

public int compareTo(Object otherTeacher){
MyTeacher otherTeac = (MyTeacher)otherTeacher;
if(no<otherTeac.no)     return -1;
if(no>otherTeac.no)  return 1;
return 0;
}
public boolean equals(Object o){
if(null==o) return false;
else{
boolean result=false;
if(o instanceof MyTeacher){
MyTeacher t=(MyTeacher)o;
if(this.no==t.no)
result=true;
}
return result;
}
}
public String toString(){
return "编号为"+no+"、姓名为"+name+"、年龄为"+age+"的"+seminary+"学院老师";
}
public static void main(String arge[]){
MyTeacher []t=new MyTeacher[2];
t[0]=new MyTeacher(1,"Tom",29,"IS");
t[1]=new MyTeacher(2,"Peter",25,"IS");
System.out.println(t[0]);
System.out.println(t[1]);
Arrays.sort(t);
for(int i=0;i<t.length;i++)
System.out.println(t[i].getName());
System.out.println(t[0].equals(t[1]));
}
}