Jump to content
We've recently updated our Privacy Statement, available here ×

Sorting fields


realnull

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

There's a "Sort Options..." button at the bottom of the Report Query dialog box. It injects the Sortfield elements into your xml for you.

 

 

Be careful though: any sorting specified within the source query will override Sortfield specifications.

Link to comment
Share on other sites

at the end of your SQL add this

 

Code:
ORDER BY
YOURTABLE.YOURCOLUMN ASC

 

ASC for Ascending DESC for Descending, if using multiple sorts it is like this.

 

Code:
[code]ORDER BY
YOURTABLEFIRSTSORT.YOURCOLUMNFIRSTSORT ASC, YOURTABLESECONDSORT.YOURCOLUMNSECONDSORT DESC, YOURTABLETHIRDSORT.YOURCOLUMNTHIRDSORT ASC

 

you can keep going as long as you like, just seperate with commas and no comma on last entry

 

:)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...