Added Sort and Clear methods.