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.

Ordering by entry_id not working in Reverse related entries

August 21, 2012 9:03am

Subscribe [2]
  • #1 / Aug 21, 2012 9:03am

    jmc7

    7 posts

    I have 2 instances where I’m using {reverse_related_entries sort="desc" orderby="entry_id"}.

    The first was setup months ago and is working as expected.  The new one however is listing my items in a different order.  What is interesting an likely the problem is the entry_ids start with values less than 100 and then continue past 100.  The order that things are displayed is 99, 98, 97,96…  once it hits the last one, it starts with 125, 124, 123…

    It appears to be a bug where the ordering is comparing strings not values.

    Please advise.

    Thanks,
    Jeff

    I’m using version 2.5.2

     

  • #2 / Aug 22, 2012 3:19pm

    Shane Eckert

    7174 posts

    Hello jmc7,

    I am sorry to hear you are running into this bug.

    Can you please try the fix and let me know if that helps?

    Thank you,

  • #3 / Aug 23, 2012 9:56am

    jmc7

    7 posts

    Ah, perfect.  That did the trick.

    Thanks,
    Jeff

  • #4 / Aug 23, 2012 11:42am

    Shane Eckert

    7174 posts

    Hey jmc7,

    Awesome! Glad to hear it.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases