How do I sort a column in a table in Jaspersoft Studio?

0

Hello,

I am using Jaspersoft Studio 5.5.1. I have a table in my report that has say 3 columns. I want to be able to sort column a, followed by column b, followed by column c.

I am not asking for click-to-sort capability after the report is generated. I am simply trying to get my report sorted during generation time. The documentation is useless in that if I search for the word 'sort' I find nothing. The other questions on this forum have to do with click-to-sort.

 

Thanks in advance!

profjavadev's picture
Joined: Feb 26 2014 - 3:11pm
Last seen: 5 years 5 months ago

1 Answer:

1

On the Dataset and Query Dialog page there are tabs at the bottom (Fields, Parameters, Sorting, Filter Expressions, and Data Preview).  You can add a field on the Sorting section.

Alternatively you could add an Order By to your Query if you are using SQL.

jasperreportsuser's picture
Joined: Apr 3 2014 - 10:46am
Last seen: 3 years 11 months ago
Feedback
randomness