const alphabet = {
  "a": 1, "á": 2, "b": 3, "d": 4,"ð": 5, "e": 6, "f": 7, "g": 8, "h": 9, "i": 10, "í": 11, "j": 12, "k": 13, "l": 14, "m": 15, "n": 16, "o": 17, "ó": 18, "p": 19, "r": 20, "s": 21, "t": 22, "u": 23, "ú": 24, "v": 25, "y": 26, "ý": 27, "æ":28, "ø": 29
}; 

const letters = ['Arnsvein', 'Adriel', 'Sigbjartur', 'Signhard', 'Heðin', 'Gullbrandur', 'Aleks', 'Poul', 'Hildibjørn', 'Augustinus'];

const lettersSorted = letters.sort((a, b) => {
    for (var i = 0; i < a.length; i++) {
        if(alphabet[a.charAt(i).toLowerCase()] < alphabet[b.charAt(i).toLowerCase()]) return -1;
        if(alphabet[a.charAt(i).toLowerCase()] > alphabet[b.charAt(i).toLowerCase()]) return 1;
    }
    console.log("-------------");
});

console.log(lettersSorted);

// Now I need to sort names
@@ -289,123 +289,175 @@
  = %5B
-'Arnsvein', 'Adriel', 'Sigbjartur', 'Signhard', 'He%C3%B0in', 'Gullbrandur', 'Aleks', 'Poul', 'Hildibj%C3%B8rn', 'Augustinus'
+%0A    %22Arnaldur%22,%0A    %22Ruben%22,%0A    %22Bartal%22,%0A    %22D%C3%AD%C3%B0rikur%22,%0A    %22Jatmundur%22,%0A    %22Arnd%C3%B3r%22,%0A    %22Kristmundur%22,%0A    %22Lukas%22,%0A    %22Tj%C3%B3%C3%B0olvur%22,%0A    %22%C3%81sgeir%22,%0A    %22J%C3%B8kil%22,%0A
 %5D;%0A%0A
@@ -747,42 +747,8 @@
   %7D%0A
-    console.log(%22-------------%22);%0A
 %7D);%0A
@@ -779,33 +779,4 @@
 ed);
-%0A%0A// Now I need to sort names

Add snippets concept