#1 March 14, 2016 9:35pm

rnelson72
Member
Registered: March 14, 2016
Posts: 3

order by

I created two related modules. Can in the main view the query include an order by field? Can is be added in the class file?

Offline

#2 March 14, 2016 9:38pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: order by

Generally if you want to order by a field in a second table you'll want to use a Grouped List view. Other than that I'd probably need more specifics about what you're trying to accomplish.

Offline

#3 March 14, 2016 9:47pm

rnelson72
Member
Registered: March 14, 2016
Posts: 3

Re: order by

the tables are venues and concerts.  I want to order the result in maini view of each. in venues order by venue_name ASC. and in concerts by datetime DESC.
How or what can I edit to do this? Or would I have to start over, building the module?

Offline

#4 March 14, 2016 9:48pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: order by

- Edit the view
- Click the icon next to the view type dropdown to open the view options
- Change the "Sort By" dropdown to the right column and direction

Offline

#5 March 14, 2016 9:58pm

rnelson72
Member
Registered: March 14, 2016
Posts: 3

Re: order by

Thank you for your help.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.