All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Alphabet Secondary Sorting

smartpill 23 May 2011 19:58 problem, complete

I'm using Low Alphabet to make a directory-type listing and I need to sort by last_name, then first_name, then date. This is a list of event speakers over a number of years. Some speakers have the same last name and some have spoken at multiple events so they will be listed more than once and need to be ordered by date.

Obviously, the initial sort by last_name field is working perfectly, but the additional sorting needs to be worked out.

Thanks.

Replies

  1. Low 23 May 2011 22:54

    Ah yes, I see. This is not possible, currently. I'll look into adding support for this soon.

  2. smartpill 23 May 2011 23:18

    Great. Thanks.

  3. Low 25 May 2011 10:45

    Hi! Can you send me an email at low at loweblog dot com? I've got a new beta version ready to be tested.

  4. Low 26 May 2011 15:40

    To wrap this up, version 1.0.4 takes care of this issue.

  5. gwineman 17 Oct 2011 20:04

    Quick question regarding this thread...

    I'm doing a directory with grouping by states. Within the states, I'd like to sort alphabetically with numbers first.

    Here's what I'm currently getting...

    Florida
    A Listing
    B Listing
    1 Listing
    2 Listing

    Iowa
    C Listing
    D Listing
    3 Listing
    4 Listing

    Here's what I want...

    Florida
    1 Listing
    2 Listing
    A Listing
    B Listing

    Iowa
    3 Listing
    4 Listing
    C Listing
    D Listing

    Here's my template:

    {exp:low_alphabet:entries channel="distributors" parse="inward" alpha_field="state" numbers="before" dynamic="off"}

    {if low_alphabet_heading}

    {low_alphabet_field}


    {/if}

    {title}
    {/exp:low_alphabet:entries}

    Any Thoughts?

  6. Low 18 Oct 2011 14:25

    I'm not sure if it will work like that, I'm afraid. The numbers="before" parameter will apply to the main sorting field, in this case "state", not the name of the listing.

    I think you might have to change your setup to get this. A bit of php on output would help, I reckon. Something like this:

    http://pastie.org/2717878