getAllItemsSortedMID pdf and docx