You can download this code by clicking the button below.
This code is now available for download.
This function takes a list of strings `lst` and returns it sorted in lexicographical order. The sorting is based on the ASCII value of the characters.
Technology Stack : Built-in functions, lambda expressions, sorting
Code Type : Sort function
Code Difficulty :
def aord_list(lst):
return sorted(lst, key=lambda x: ord(x))