Subject: Re: [Q] Sorting a Hash From: Erik Naggum <erik@naggum.no> Date: 2000/03/09 Newsgroups: comp.lang.lisp Message-ID: <3161627464759676@naggum.no> * Sandeep Koranne <koranne@natlab.research.philips.com> | Is it possible to sort a Hash based on a function on the values? as others have indicated in indirect ways, this is not a well-defined question, since the result of sorting a hash table would have to be something other than a hash table. so we need to know what kind of result you want in order to answer your question. e.g., yes, you can easily _print_ the (key value) pairs of a hash table sorted on the key or on the value, but you would do that by creating an intermediary sequence of keys or whatever, sort on that, and then do the actual printing. #:Erik