added DocumentParser.sort test