as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
come up with an algorithm to sort a list of strings lexicographically.
user
steps to sort a list of strings in lexicographical order:
1. take the first character from each string and put them in a list.
2. sort the list. 
3. compare each character sequentially in the original strings. 
4. rearrange the strings in the same order as the characters in the sorted list.
assistant