set (mylist a b c) list(SORT mylist COMPARE STRING COMPARE STRING)