median problem

as per the error the new list >inc< is not sorted

"Oops, try again.median([6, 8, 12, 2, 23]) returned 12 instead of 8"

i wanted a proper result

```
def median(ina):
inc = sorted(ina)
k = len(inc)
if k == 1:
return inc[k - 1]
if k % 2 == 0:
return ((inc[k / 2] + inc[k / 2 - 1]) / 2.0)
if k % 2 != 0:
return inc[(k + 1)/ 2]
```