sorting flattened.html by due_date; removed excess