If I was marking that code you would fail.
USE AN ARRAY for crying out loud!!!

Also, the sorting algorithm itself is fine, but you're not supposed to be sorting integers, you're supposed to be sorting structures.