Heapsort would be my reccomendation. It's relatively quick when n is large, and you only have to look at three elements with definite indecies at once.
That being said, my intuition tells me that sorting a billion rows on an 8080 even in C would be unfeasibly slow.