Simple sorting program, can't figure out whats wrong with my code

Printable View