Sorting functions of PHP arrays with an example