Added methods for output display, implement sort interface