assign paper index after sorting