Export sorted item IDs