Popular recipes by Andrew Henshaw http://code.activestate.com/recipes/users/113832/2001-09-06T12:21:25-07:00ActiveState Code RecipesRound-Robin Pairings Generator (Python) 2001-06-13T19:45:02-07:00Andrew Henshawhttp://code.activestate.com/recipes/users/113832/http://code.activestate.com/recipes/65200-round-robin-pairings-generator/ <p style="color: grey"> Python recipe 65200 by <a href="/recipes/users/113832/">Andrew Henshaw</a> (<a href="/recipes/tags/algorithms/">algorithms</a>). </p> <p>An implementation of a round-robin algorithm for "fair" pairing of items from a list. The function produces a schedule of the pairings that can occur simultaneously.</p> Sort objects using SQL ORDER BY SYNTAX (Python) 2001-09-06T12:21:25-07:00Andrew Henshawhttp://code.activestate.com/recipes/users/113832/http://code.activestate.com/recipes/68204-sort-objects-using-sql-order-by-syntax/ <p style="color: grey"> Python recipe 68204 by <a href="/recipes/users/113832/">Andrew Henshaw</a> . </p> <p>This class provides objects that can be sorted by multiple keys, with each key independently ascending or descending. The class is designed to replicate the functionality of the SQL 'ORDER BY' clause.</p>