Eh you should be a little more detailed in your explanation, I'm not quite catching it.
And does this help at all?
PHP Code:
sortascending() - sorts the array in ascending order (smallest value first)
sortbyvalue(str, str, bool) - sorts the array by the specified variable name, you must also say what variable type it is (e.g. string) and if it should be sorted ascending
sortdescending() - sorts the array in descending order (highest value first)