how to sort a list alphabetically in python without sort function