Group a sorted strings of array into an array of objects

input = [‘abc’, ‘def’,’ghi’, ‘bac’, ‘fed’, ‘hgi’, ‘acb’, ‘edf’, ‘igh’]

output = [{‘abc’, ‘bac’, ‘acb’},{ ‘def’, ‘edf’, ‘fed’}, {‘ghi’,  ‘hgi’,  ‘igh’}]

Need to sort the array and group them by array of objects