The {{nav}} sort order is wrong in 1.9.2 release

I noticed this after updating to 1.9.2 but it may have been present in an earlier release.

My navigation is rendering sub-pages in non-alphabetical order when not specified numerically. It's actually different in my local environment and on the server. My folder structure:

Screen Shot 2014-12-14 at 3.52.43 PM.png

On the server, see: Take a look at the "Playbooks" and "Code" menus (note the odd order).

Screen Shot 2014-12-14 at 4.01.52 PM.png

In my local environment, it's reverse alphabetical (also odd).

Screen Shot 2014-12-14 at 4.02.44 PM.png

This is my nav loop:

{{ nav from="/" folder_only="false" max_depth="3" include_content="true" }}
    <li class="li-1">
        <a class="a-1 section--{{ stack }}" href="{{ url }}">{{ title }}</a>

        {{ if children }}
            <ul class="ul-2">
                {{ children }}
                    <li class="li-2">
                        <a class="a-2" href="{{ url }}">{{ title }}</a>
                {{ /children }}
        {{ endif }}
{{ /nav }}

Another example

The same bad sorting behavior is happening on sub-pages that use the NAV tag:

Much simpler code which renders this:

<ul class="manual-list manual-list--left">
    {{ nav from="{ segment_1 }" include_content="true" }}
            <a class="manual-cover manual-cover--{{ stack }}" href="{{ url }}">
                <h2 class="manual-title">{{ title }}</h2>
                <div class="manual-subtitle">Field Manual</div>
                <div class="manual-stack">{{ stack }}</div>
                <img class="manual-icon" src="{{ theme:img src="gravdept-logo-white.svg" }}" alt="" />
    {{ /nav }}

Not sure what's going on here. I don't see any sort parameters for the NAV tag:

Answered by Jack McDade!
>>>>>>> Answered <<<<<<<
7 Replies