top method
dynamic
top()
Implementation
top() {
if (!this.sorted) {
this.sort();
}
//print("mmm"+this.contents.length.toString()+'ooo'+this.contents[this.contents.length-1].toString());
return this.contents[ this.contents.length - 1 ];
}