set (mylist a b c) list(SORT mylist ORDER ASCENDING ORDER ASCENDING)