I am having trouble finding any questions and answers to this.
I have a list of words as below:
['ABC11-2', 'BCD14-1', 'ABC09-1', 'ABC14-1', 'BCD11-2']
I need to sort it like so
['ABC09-1', 'ABC14-1', ABC11-2', 'BCD14-1', 'BCD11-2']
But with sorted() or sort() I get
['ABC09-1','ABC11-2', ABC14-1', 'BCD11-2', 'BCD14-1']
I need it to sort by the unit name first, then the semester and then the unit number.
Thanks,