'Return a list of teams sorted according to the default ordering
(last_activity_at, with a secondary sort by open slots).'

def teams_with_default_sort_order(self, teams):

    return sorted(sorted(teams, key=(lambda t: len(t['membership'])), reverse=True), key=(lambda t: parse(t['last_activity_at']).replace(microsecond=0)), reverse=True)
