Use natural sort order in graph tests.

The integer cycling graph test is failing (in my environment at least) because of different sort order in the new and ref ```.plain``` graph files, although the content is otherwise the same by inspection. "Natural sort order" by ```sort -V``` cures the problem.

@benfitzpatrick - please review.