Add wholesales terms and make tables sortable.