added sort by lengths functionality
Aggregation
work in progress