ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

orderby random then sort alphabetically based on title

November 04, 2010 6:30pm

Subscribe [2]
  • #1 / Nov 04, 2010 6:30pm

    inphantry

    12 posts

    Here is my current entries tag:

    {exp:channel:entries channel="blog_roll" dynamic="no" orderby="random" sort="asc" limit="5"}

    I’m wondering how I would grab 5 random entries, and then sort the results alphabetically based on the title. I tried orderby=“random|title” but that changed nothing.

    Any ideas?

  • #2 / Nov 08, 2010 6:15am

    Fusion Design

    128 posts

    According to http://ellislab.com/expressionengine/user-guide/modules/channel/parameters.html#par_sort

    You may be needing to use sort=“asc|desc” alongside orderby=“random|title”.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases