Print proper index for sorted hash