Complete #sort_by enumerable
Complete #group_by enumerable