Changed datastore so aggregators can be chained and aggregators do their own sorting