[Tutor] Sorting dictionary values

dman dsh8290@rit.edu
Wed, 15 Aug 2001 14:25:18 -0400

On Wed, Aug 15, 2001 at 11:21:03AM -0700, Danny Yoo wrote:
| Your program is slowly sounding like a relational database.  *grin* If you
| anticipate more complicated queries, you might find it useful to pick up a
| relational database and see if it would work well for you.
| could be translated into SQL almost directly:
| ###
| query = """select *
|            from users
|            order by score
|            limit 10"""
| ###

Cool.  This is a good way to explain _why_ one might want to use a
database, other than for relief from creating and parsing custom
files, and how it can be useful.