I'm trying to sort an array to find the mean of it. After finding the median I'm looking to continue using the array. When using the code,
double[] views, viewssorted;
views = new double[] {9.0, 1111.0, 2.0 };
viewssorted = views;
Array.Sort(viewssorted);
both my viewssorted and views arrays get sorted. How do I make it so that only viewssorted gets sorted?