This function returns the array that is passed to it, sorted in "increasing" order. The order is what you would think for integers and rooms, and is lexicographic order for strings. Thus
sort(['a','c','d','b','e'])
would produce
['a','b','c','d','e']