Sorting method with student details.

am fresher in C programming . i would like to implement the code for student details (roll no, name, marks(m1, m2,m3),avg,tot, grade using sorting methods. like(at same code- need to use five sorting methods :- merge sort, bubble sort, insertion sort, selection sort,etc.,). Will you tell how can i develop ? any sample reference code pls.