sorted output of the get_valid iders