I wrote this function to sort an array of library books by their book type (an int from 1-4) and to print out the members of the array in ascending order by book type to the file grouped_record.txt. The program compiles fine but for some reason the file grouped_record.txt remains empty after the program runs. I am sure that the array of library books is filled up correctly as I tested some cout statements to ensure that the array was filled.