takes an input list, converts to integers, sorts, find unique lists and writes them sorted to file