Can someone help me understand this sentence in DIFFMED problem statement please?

My issue

" For example,
median({3,1,2})=2, and median({3,4,1,2})=2".
Should’nt median of{3,1,2} be 1 and median of {3,4,1,2} be (1+4)/2=2.5 ???

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	return 0;
}

Problem Link: DIFFMED Problem - CodeChef

We always check for the median after sorting the array like for 3 1 2 when u sort it it will become 1 2 3 thus the median would be 2 .