Added sort

The test now sorts the output from both standard creation and testing
and puts them in a separate file for use in comparing different tests.