On Thu, 20 Jan 2011 02:44:39 +0100, bearophile <bearophileHUGS at lycos.com> wrote: >> That result is not the requested one: >> [(10,"aa"), (30,"bb"), (50,"cc")] > > Sorry, the last tuple is (30,"cc"). And the second is (20,"bb"), I hope. :p -- Simen