JasperReport data filtering after data source has been looped through
I'm new to JasperReports and I'm having difficulty with outputting my data correctly. I have a SQL data source that is order specific. I created in the JRXML a parameter that is linked to a class method that takes the data, updates it and creates a filtered list. In that same class I created getters that can retrieve the data I need. 

I want to take that filtered list, after the SQL data source has been looped through, sort it and use that as my data source to display on my report. How can this be done? I've read that I might be able to use subreports or scriplets, I'm not sure how to do that, or if that's the best approach. 


JasperReport data filtering after data source has been looped through
===

I'm new to JasperReports and I'm having difficulty with outputting my data correctly. I have a SQL data source that is order specific. I created in the JRXML a parameter that is linked to a class method that takes the data, updates it and creates a filtered list. In that same class I created getters that can retrieve the data I need. 

I want to take that filtered list, after the SQL data source has been looped through, sort it and use that as my data source to display on my report. How can this be done? I've read that I might be able to use subreports or scriplets, I'm not sure how to do that, or if that's the best approach. 

