$(function(){
	$('ul.events').each(function(){
		var liAlphaSort = $(this).find('li.ongoing').get();
		$.each(liAlphaSort, function(index, row){
			row.sortKey = $(row).children('h3').text().toUpperCase();
		});
		liAlphaSort.sort(function(a, b){
			if(a.sortKey < b.sortKey) return -1;
			if(a.sortKey > b.sortKey) return 1;
			return 0;
		});
		$.each(liAlphaSort, function(index, row){
			$(this).parent().append(row);
			row.sortKey = null;
		});
	});
});