# HG changeset patch # User Paul Boddie # Date 1251674059 -7200 # Node ID fb0ad812b19fd5edf89a0d1ae44ef7012ac8f6cb # Parent ae07d4c3c9afd50eaee44ee3cbfb2008a996ddf7 Ensure document position ordering at the lowest level. diff -r ae07d4c3c9af -r fb0ad812b19f iixr.py --- a/iixr.py Sun Aug 30 23:22:51 2009 +0200 +++ b/iixr.py Mon Aug 31 01:14:19 2009 +0200 @@ -238,6 +238,7 @@ # Write the number of documents. self.write_number(len(doc_positions)) + doc_positions.sort() # Write the positions. @@ -1128,7 +1129,6 @@ for term, doc_positions in terms: doc_positions = doc_positions.items() - doc_positions.sort() dict_writer.write_term_positions(term, doc_positions) dict_writer.close()