Function to export the attendance data to an Excel file.
The attendance data to be included in the Excel file.
Optional
The student for whom the Excel file is being created.
The option by which the data should be sorted.
Function to export the attendance data to an Excel file.