Complex Sorting of a List
<p>I have a list of times from about 8:00am-7:00pm in string format. The am/pm is not specified, and using a 24 hour clock is not an option. I want to sort this list by time, but I'm running into issues after the clock strikes one, since numeric sorting begins at one, despite the fact that 8-12 are actually before that in terms of time. I was thinking I could create a new list of tuples where I ran the times through a function that converted them to a more appropriate number, sorted that, and used the first element of the tuple in the functions that needed that. This seems like it would work, but I fear I may be missing something a lot more elegant and fundamental. Am I? </p>
