slight modification 

hard coded the sort letter and number of iterations in a few loops will probably have to recompile