Another idea:
Create a program with only a single sort statement (and required lines to get it to compile), then step through the source and, at least in visual studio, you can step through...