I want to sort my object by many criteria but in different event/method. example, there 2 options: 1 . Sort by name 2. Sort by Hit Point
public class MonsterArray implements Comparable<Monster>{
......
public int compareTo(Monster m) {
//what must i code here
}
}
can i use the compare to? or must using another sort. please help me :)