Sorting
Simple sort
new_table = table.order_by('birth_date', reverse=True)
Sort by multiple columns
This is in the agate docs, but ...
sorted_table = data.order_by(lambda row: (row['county'], row['city']))
The new sorted_table
will be ordered by county
, then city
.