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.

Categories Not Getting Sorted Alphabetically

June 06, 2008 7:15pm

Subscribe [3]
  • #1 / Jun 06, 2008 7:15pm

    intramedia

    15 posts

    I have set my master sort order to alphabetical in

    Admin ›  Weblog Administration ›  Category Groups ›  Category Management

    and everything looks fine.

    But when I view my categories it’s not in alphabetical order.

    beta.computerexplorers.com/locations

    how do I get it to be alphabetical?

  • #2 / Jun 06, 2008 8:17pm

    intramedia

    15 posts

    nevermind. I guess the functionality of the master sort order just doesn’t work. I ended up adding an order by syntax to my query to get it to display correctly.

  • #3 / Jun 08, 2008 10:05am

    Robin Sowell

    13255 posts

    It should- but I’m not dead sure where/how it isn’t working for you.  When you switch it to alpha in the control panel- does it sort properly in the actual control panel display on the main category management page?

    (If you don’t want to poke it further, let me know.  But the category tag should respect that setting.)

  • #4 / Jun 08, 2008 5:16pm

    Marie-Jo Jones

    23 posts

    I have the same problem with subcategories. Categories show up in correct alphabetical order on the blog but subcategories don’t although they are listed correctly by alphabetical order in the admin.

  • #5 / Jun 09, 2008 11:06am

    Robin Sowell

    13255 posts

    Can you paste the tag you’re using to show them- exactly as used.  And what build/version are you running?

  • #6 / Jun 09, 2008 2:26pm

    Marie-Jo Jones

    23 posts

    Site (in development stage) is here. http://www.ibcom.ch/ee01/
    Using version 1.6.3
    Code used is:

    <dl>
    {exp:weblog:categories weblog="xrv" style="nested"}
    <dd><a href="http://{path=xrv/index}">{category_name}</a></dd>
    {/exp:weblog:categories}
    </dl>
  • #7 / Jun 09, 2008 3:00pm

    Account Inactive

    21 posts

    Hi Robin,

    I’ve been trying to get sub-categories to sort alphabetically, which is how how they are set to display in the control panel. The sub-categories simply aren’t being sorted alphabetically, period.

    Would you please confirm if this is a bug or offer a solution to rectifying this situation. It is a basic function with straightforward syntax and simply doesn’t seem to be working.

    The code in the post above will help you understand the problem.

    Any help you can offer would be greatly appreciated.

    Cheers,
    Robert

  • #8 / Jun 09, 2008 4:06pm

    Marie-Jo Jones

    23 posts

    In fact, even the main categories (level 1) don’t show up in alphabetical order any longer. They don’t in the admin edit/publish section either.

  • #9 / Jun 09, 2008 11:29pm

    Sue Crocker

    26054 posts

    Robert, how were the categories entered? Were they done by hand or via an import of some sort?

  • #10 / Jun 09, 2008 11:50pm

    Marie-Jo Jones

    23 posts

    They were typed by hand, practically all at the same time.

  • #11 / Jun 10, 2008 11:08am

    Robin Sowell

    13255 posts

    It’s working as expected for me.  What build/version are you both running?  And- if more than one category group is assigned, it outputs them as distinct groups rather than combining them into one big sort (which makes sense).  I’m wondering if that’s making things look wrong?

    Try specifying the category group- should sort the same way it does in ‘Admin- Weblog Admin- Cat Management’.

    So- my test looks like:

    <dl>
    {exp:weblog:categories weblog="reading" style="nested" category_group="3"}
    <dd><a href="http://{path=xrv/index}">{category_name}</a></dd>
    {/exp:weblog:categories}
    </dl>

    That make any difference?

  • #12 / Jun 10, 2008 5:41pm

    Account Inactive

    21 posts

    Hi Robin,

    Here is the code I’m using:

    <dl>
        <dt>Rubriques</dt>
        {exp:weblog:categories weblog="xrv" category_group="2" style="nested"}
            <dd><a href="http://{path=xrv/index}">{category_name}</a></dd>
        {/exp:weblog:categories}
    </dl>

    Everything looks fine in the control panel, including the sort order being set to alphabetical.

    We’re running ExpressionEngine 1.6.3 - Build:  20080421, which I think is the very latest version.

    Have any other users reported this problem?

    Thanks for your help.

    Cheers,
    Robert

  • #13 / Jun 11, 2008 11:02am

    Robin Sowell

    13255 posts

    No- definitely not a frequent issue.  Let’s try blowing the dust out of the sort- go edit the categories.  Switch the order to custom, move one- submit.  Clear caches.  Is the order matching the backend order now?  If so, we can try switching it back to alpha.

    Also- any extensions installed that might possibly be in play?

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

ExpressionEngine News!

#eecms, #events, #releases