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
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
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