panjamin
7/30/2018 - 12:17 PM

sort

	lists = lists.sort(function(a,b){
		return a-b;
	});
	$.each(lists.sort(), function(key, value) {
		if (value != null && value != '')
		{
			const temp = template.replace("#No#", key + 1).replace("#time#", moment(value).format("YYYY-MM-DD dddd"));
			result += temp;
			$("#partClassTimeDisplay").html(result);
		}
	});