it seems like just 'sort' function but no 'sorted' function

Changed all "sorted" to "sort".