I have this code to display jobs in a menu:
{exp:channel:entries channel="careers" category="19" dynamic="off" orderby="title" sort="asc"}
<a href="http://{base_url}careers/{url_title}">{title}</a>
{/exp:channel:entries}it was working fine until we added two new entries which are out of order: http://www.vacco.com/careers/ehs-specialist
any ideas why the orderby is not working?
(no sticky entries in this channel)
thanks
no nesting tags. I created a blank template with nothing but this code:
{exp:channel:entries channel="careers" category="19" dynamic="off" orderby="title" sort="asc"}
<a href="http://{base_url}careers/{url_title}">{title}</a>
{/exp:channel:entries}http://www.vacco.com/careers/test
what else could influence the sort order?
it’s v 2.4 but I would assume that sort order wouldn’t be an issue.
I can order fine by other parameters like date or custom field but both title and url_title do the same: they sort alphabetically EXCEPT for the latest three records!
no major add-on besides ‘freeform’, ‘wygwam’ and ‘SEO lite’
Can you try the channel entries tag without the category parameter?
Try turning on Output and Debugging and inspecting the query that lists those entries to see what turns up.
I would also be looking at the database to inspect those entry rows to see if there is anything different about them.
They would be my next steps
thank you for that. that’s a bit above my pay grade but my rudimentary review showed no signs of anything different for these entries in the database itself.
I do see a lot of queries (66) for this test page (which seems high) but, again, difficult for me as a front-end developer to tell what to look for. except, I do see the queries that pull these jobs and all I can see is that the ORDERBY does not include any of my specified parameters
ORDER BY c.group_id, c.parent_id, c.cat_orderperhaps that ordering is sorted somewhere else but, for now, I told my client that it looks like a bug.
thanks again for your time and help.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.