Add aggregates and sortBy operations to array and jpin to Map