human
how to sort a list in alphabetic order.
assistant
Here is a Python program to sort a list in alphabetic order

import random

def sort_alphabetically(list):
    """Sort a list in alphabetic order"""
    return sorted(list, key=lambda x: x[0])

# Enter the list
myList = ['a', 'b', 'c', 'd']

# Calling the function
print((sort_alphabetically(myList)))

#Example Output
# ['a', 'b', 'c', 'd']

#Remember to inspect code for bugs.