I have a two dimensional list and I want to sort them priority. my list like; [0] is number, [1] is name-surname, [2] is degree .. etc And the names are include non-english characters like "Ç İ Ş" and sort/sorted method doesnt work. Thats why I implemented a alphabet like; alphabet = "abcçdefgğhıijklmnoöprsştuüvyz" and I have to sort them like following alphabet.
here is my code;
list.sort(key=lambda list : list[0]) -< this is first priority about number.
list.sort(key=lambda list : list[1]) -< this is second priority about name and surname
but this doesnt work and ı dont even know how to sort them with alphabetically in my alphabet. any help?
How to sort a list with an exception in Python this link is also an answer for this question but my list is not tuple, so doesnt work. Can anyone help me ?