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.

Custom field sorting issue

June 21, 2007 11:22am

Subscribe [1]
  • #1 / Jun 21, 2007 11:22am

    Linda A

    666 posts

    I am having some problems with sorting by a custom field. On the same page, it works for one set of entries but not for another. I have cleared the cache, and this makes no difference.

    Page: http://www.westeros.org/BoD/FAQ/

    Issue: Entry 1.3.3. sorts before entry 1.3.1. and 1.3.2. These entries are set to sort by a custom field, and the content of said custom field for these entries is 01.03.03. and 01.03.01. and 01.03.02 What really mystifies me is that it works just fine for entries 1.2.1. through to 1.2.6., for example.

    Code:

    <ul class="NestedNone">
    <li>1. <a href="http://www.westeros.org/BoD/FAQ/Category/C146/">About the Game</a>
    <ul>
    <li>1.1. <a href="http://www.westeros.org/BoD/FAQ/Category/C150/">Basics</a>
    <ul>
    {exp:weblog:entries weblog="{current_weblog}" category="176" orderby="{current_weblog_id}_number_sorting" sort="asc" disable="member_data|pagination|trackbacks}
    <li>{{current_weblog_id}_number_display} <a href="{comment_entry_id_auto_path}">{title}</a></li>
    {/exp:weblog:entries}
    </ul>
    </li>
    <li>1.2. <a href="http://www.westeros.org/BoD/FAQ/Category/C150/">Setting</a>
    <ul>
    {exp:weblog:entries weblog="{current_weblog}" category="150" orderby="{current_weblog_id}_number_sorting" sort="asc" disable="member_data|pagination|trackbacks}
    <li>{{current_weblog_id}_number_display} <a href="{comment_entry_id_auto_path}">{title}</a></li>
    {/exp:weblog:entries}
    </ul>
    </li>
    <li>1.3. <a href="http://www.westeros.org/BoD/FAQ/Category/C149/">Policy</a>
    <ul>
    {exp:weblog:entries weblog="{current_weblog}" category="149" orderby="{current_weblog_id}_number_sorting" sort="asc" disable="member_data|pagination|trackbacks}
    <li>{{current_weblog_id}_number_display} <a href="{comment_entry_id_auto_path}">{title}</a></li>
    {/exp:weblog:entries}
    </ul>
    </li>
    </ul>
    </li>
    <li>2. <a href="http://www.westeros.org/BoD/FAQ/Category/C147/">Character Setup</a>
    <ul>
    {exp:weblog:entries weblog="{current_weblog}" category="147" orderby="{current_weblog_id}_number_sorting" sort="asc" disable="member_data|pagination|trackbacks}
    <li>{{current_weblog_id}_number_display} <a href="{comment_entry_id_auto_path}">{title}</a></li>
    {/exp:weblog:entries}
    </ul>
    </li>
    <li>3. <a href="http://www.westeros.org/BoD/FAQ/Category/C148/">For Newbies</a>
    <ul>
    {exp:weblog:entries weblog="{current_weblog}" category="148" orderby="{current_weblog_id}_number_sorting" sort="asc" disable="member_data|pagination|trackbacks}
    <li>{{current_weblog_id}_number_display} <a href="{comment_entry_id_auto_path}">{title}</a></li>
    {/exp:weblog:entries}
    </ul>
    </li>
    </ul>
  • #2 / Jun 22, 2007 7:30am

    Linda A

    666 posts

    Any thoughts? Am I being less than clever again, or could there be a bug here? I am not yet on 1.6 (working on it, though).

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

ExpressionEngine News!

#eecms, #events, #releases