Changed the GUI to support line sorting