Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author emmanuelg

    (@emmanuelg)

    Hi

    I will check the “menu_order” issue.
    I use the method “create fonction”, because I keep DB queries in cache. If the same list of attachments is requested several times, with different order, I execute only 1 DB query.

    Emmanuel.

    Thread Starter thepanz

    (@thepanz)

    I don’t get your point, you’re generating an hash with the query parameters, thus including “order” and “orderby” parameters.
    With my edits the cache works exactly as before; in fact you’re sorting the attachments only after the DB query has been executed.
    Another reason would to keep in cache the attachments not regarding their sorting; in that case you should create the cache hash without the two “order” and “orderby” paramseters.

    Regards

    Plugin Author emmanuelg

    (@emmanuelg)

    Hi

    You are right.
    What I explained is the behavior before the 2.0.0. Then I changed the cache…

    A sort function is still required if we want to sort attachments according date (file modified), or size.

    I will review this question for the coming version.

    Emmanuel.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong sorting’ is closed to new replies.