GUI: add sorting function of the columns.