I have a List of my Class
var Events = List.<Evnt>();
where the Class Evnt has a property enentTime
public class Evnt{
//properties
var eventNo :int;
var eventTime :float;
//Constructor
public function Evnt(evn:int,evt:float){
this.eventNo = evn;this.eventTime = evt;
}
}
I want to sort this List by eventTime. If I call Events.Sort() I get an error - ArgumentException: does not implement right interface. How can I sort a List in this manor? Thank You.