I have added a sort function to the report by pdf and the generated table, allowing for the data to be organized in the same way. This will make it easier to view and analyze the data, as the same sorting criteria will be applied to both the pdf and the table.