sorting: buying toys within a budget