I am looking to alphabetically sort a list of objects based on another list of characters and the 'name' property. Below is the sorting order I would like to use:
const SortingArray = [['a','á','à','â','ä','å','ã'],['b'],['c','ç'],['d'],
['e','é','è','ê','ë'],['f'],['g'],['h'],['i','í','ì','î','ï'],
['j'],['k'],['l'],['m'],['n','ñ'],['o','ó','ò','ô','ö','õ'],['p'],
['q'],['r'],['s','š'],['t'],['u','ú','ù','û','ü'],
['v'],['w'],['x'],['y','ý','ÿ'],['z','ž']];
Here is the list that needs to be sorted:
var listToSort = [{name: 'Étape',code: 'c12'},{name: 'Abc',code: 'c14'},{name: 'Ûrter',code: 'c15'}
]