Changed sort order to DocID + LineNo