webstats.py
Hitcount.__cmp__()
# - - - H i t C o u n t . _ _ c m p _ _ def __cmp__ ( self, other ): '''Sort descending by .ntotal, ascending by .url ''' return cmp ( (other.nTotal, self.url), (self.nTotal, other.url) )