To find the quartile values first we have to arrange the data in ascending or in descending order.
To find the median, the data should be arranged in ascending or descending order.