print the sort key for invalid indices