deal with ending up with a dictionary with less than 20 items to sort