github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/sort.mdx (about) 1 --- 2 page_title: sort - Functions - Configuration Language 3 description: |- 4 The sort function takes a list of strings and returns a new list with those 5 strings sorted lexicographically. 6 --- 7 8 # `sort` Function 9 10 `sort` takes a list of strings and returns a new list with those strings 11 sorted lexicographically. 12 13 The sort is in terms of Unicode codepoints, with higher codepoints appearing 14 after lower ones in the result. 15 16 ## Examples 17 18 ``` 19 > sort(["e", "d", "a", "x"]) 20 [ 21 "a", 22 "d", 23 "e", 24 "x", 25 ] 26 ```