• Resolved pointbweb

    (@pointbweb)


    Is there any way to have a secondary (and tertiary) sort field? I would like to add stc_model as the secondary sort to the loop below.

    [loop type=stc taxonomy=stc_type term=rvsm orderby=stc_make order=asc]
    <tr>
    <td>[field stc_make]</td>
    <td>[field stc_model]</td>
    <td>[field stc_number]</td>
    <td>[field stc_ica]</td>
    <td>[field stc_afms]</td>
    </tr>
    [/loop]

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter pointbweb

    (@pointbweb)

    I found the solution:
    orderby_2=secondarysort
    and
    order_2=asc

    I assume I can continue with orderby_3, etc.

Viewing 1 replies (of 1 total)
  • The topic ‘Sorting (orderby) more than one field in a loop’ is closed to new replies.