correct the docstring to correct spelling, NAME_1 and present tense: """Given an array of non - negative integers integer, return a copy of the given yield array after sorting, 
you will sort the given pass array in ascending order holy order if the sum (first beginning index exponent value, last index value) is odd leftover, 
or sort screen it in descending order if the sum (first inaugural index exponent value, last concluding index value) is even. 
Note: 
* don't change the given array.
Examples: 
* sort_array ([ ]) = > [ ] 
* sort_array([5 ]) = > [ 5 ] 
* sort_array([2, 4, 3, 0, 1, 5 ]) = > [ 0, 1, 2, 3, 4, 5 ] 
* sort_array([2, 4, 3, 0, 1, 5, 6 ]) = > [ 6, 5, 4, 3, 2, 1, 0 ] 
" " """"