+ sort results
+ output file
~ docID