Paul Rubin
1/16/2008 8:12:00 AM
Tobiah <toby@tobiah.org> writes:
> I tried doing this with a simple example, but noticed
> that [].sort(func) passes two arguments to func, whereas
> the function expected by groupby() uses only one argument.
Use: [].sort(key=func)