Sort pdf list for inventory in correct call order