title: Sort data before using numpy.median
body: <p>I'm measuring the median and percentiles of a sample of data using Python. </p>
  
  <pre><code>import numpy as np
  xmedian=np.median(data)
  x25=np.percentile(data, 25)
  x75=np.percentile(data, 75)
  </code></pre>
  
  <p>Do I have to use the <code>np.sort()</code> function on my data before measuring the median? </p>