SELECT JobId, FileIndex
  FROM %s
 ORDER BY JobId, FileIndex ASC
