Updated Lab 6 with an alternate sort