Ensure print order is index order

Keys can be in any order, iterate over the index directly