Array implementation in c with microcontroller

Hi ,
I want to implement a data structure using embedded c. I want to store last 10 readings obtained through the hardware and store them in an array using the micro controller. After storing i want to sort the array and display the maximum value.