replace the immutable variable "path" (that is a parameter) with a new variable "path_str"
slice.sort_proc
slice.sort_by
slice.sort_by_key