refact 'Sort List'