Updated generateListItem and eventsList.sort callback

I made the list HTML consistent with the term listing. Also, made some code formatting and efficiency adjustments to the sort event callback for the events list.