You forgot to mention what language you want it in. There are also loads of sorting techniques. You could use selection, bubble or insertion sorts.
I need a program that asks for 10 integer values to be stored an an array and asks whether to do sort it ascending or descending, then displays the sorted values in a line.