1 2 3
if a_i!=b_i then: return cmp(a_i, b_i) return my_cmp(a[1:], b[1:])
Python On Custom sort a list of words
by jaredgrubb,
December 14, 2007 21:56
As for the difference betwe...
1 2 3 4
def my_cmp(a, b): global alphabet ...
Python On Custom sort a list of words
by jaredgrubb,
December 11, 2007 04:24
You can use the sort() meth...
C On Character buffer manipulati...
by jaredgrubb,
October 29, 2007 15:44
A comment on Andy Lester's ...
(ugh, my ancient BASIC back...