Sorting a list using GUI