You can download this code by clicking the button below.
This code is now available for download.
This function takes a list of words as an argument and returns a sorted list based on alphabetical order, case insensitive.
Technology Stack : Built-in functions: sorted, lambda expression
Code Type : Function
Code Difficulty : Intermediate
def sort_words(words):
return sorted(words, key=lambda word: [word.lower(), word])