pop method
dynamic
pop()
Implementation
pop() {
if (!this.sorted) {
this.sort();
}
return this.contents.removeLast(); //.pop();
}
pop() {
if (!this.sorted) {
this.sort();
}
return this.contents.removeLast(); //.pop();
}