changed sorting order; can now create compressed version of test document, need more tests