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.

Orderby edit_date, not accurate

July 21, 2010 12:16pm

Subscribe [2]
  • #1 / Jul 21, 2010 12:16pm

    bmschaaf

    171 posts

    Hello,

    I am running 1.6.9, build 20100430.

    I have a page where I want to output all my weblogs, limit to 50, and ordery by edit_date.

    However, when I orderby edit_date I get results like this:

    07 19 2010
    07 15 2010
    07 15 2010
    06 28 2010
    06 23 2010
    05 26 2010
    07 21 2010
    07 21 2010
    07 21 2010
    07 21 2010
    07 20 2010
    07 20 2010
    07 20 2010
    07 20 2010
    07 20 2010
    07 20 2010
    07 20 2010
    07 20 2010
    07 19 2010…

    After it gets to the 7/21, 7/21, 7/21… it seems to be correct.  So, the first 6 are out of order.

    This is the code I used:

    {exp:weblog:entries limit="50" weblog="" orderby="edit_date" sort="desc" }
    {edit_date format="%m %d %Y"}
    {/exp:weblog:entries}

    Also, I did try with the weblog parameter not empty as well.

    Thanks in advanced!

  • #2 / Jul 21, 2010 5:53pm

    Ingmar

    29245 posts

    Are you using sticky entries, by any chance?

  • #3 / Jul 21, 2010 5:59pm

    bmschaaf

    171 posts

    Ugh-  apparently so.  I had no idea, but should have checked to see if the box was ticke.

    I used the sticky=“off” parameter, and it works just great.

    Ingmar, you always ask the right questions.  ThanksXmillion!

  • #4 / Jul 21, 2010 6:06pm

    Ingmar

    29245 posts

    I’ve seen this before (who am I kidding? I had this happen to me before)... glad it’s solved.

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

ExpressionEngine News!

#eecms, #events, #releases