2.1 - Capacity and trends

Add sort order to postgres