Instead of using a raw array, why not use a generic list collection? Then you can call .Sort() to sort the collection.

Of course, if this is a homework assignment, then you'll have to do it...