• Resolved Chriber

    (@chriber)


    Hi,

    We’re using your plugin for some very long publication lists grouped by year and would like to sort the entries (newest on top). Default seems to be oldest entry on top… So I’ve tried this:

    [mendeley type=”folders” id=”8f2e7172-7655-4596-8994-ad5e3f209aa7″ sortby=”year” sortbyorder=”asc” groupby=”year” groupbyorder=”desc”]

    But regardless of whether I use “asc” or “desc” in sortbyorder and groupbyorder there’s no effect and no reordering ??

    Do I use the right attributes? Or don’t they simply work anymore?

    Thanks in advance,
    Chris

Viewing 6 replies - 1 through 6 (of 6 total)
  • I am having exactly the same issue. Tried “asc” and “desc” with and without quotation marks. Any solution?

    Thank you
    Henrik

    • This reply was modified 7 years, 4 months ago by togetherafoot.
    Plugin Author kochm

    (@kochm)

    Thanks for your feedback. I just checked all variants of sorted output in my test systems – and everything works fine – But there is a problem in the documentation: In some places the attribute for selecting the sort direction is named “sortbyorder” in other places “sortorder”. The correct label is “sortorder” and corresponding “grouporder”. Could you please try with this?

    It worked! Thank you for getting back to me so fast (though I did not notice until now ?? ). Tested both grouporder and sortorder.

    Thank you

    /Henrik

    Thread Starter Chriber

    (@chriber)

    OK, thanks this works.

    But I just noticed a missunderstanding: I would have liked to have the entries grouped by year and sorted by date, but as there are only 2 possible values for “sortby” (“authors”, “year”) sorting by date is not possible ??
    So there’s also no use in using sortby and groupby thogether.

    Maybe any clues how I could sort by publication date, descending?

    Plugin Author kochm

    (@kochm)

    There are actually more possible values – but only authors and year are tested. You can use any Mendeley document attribute to sort by – e.g. accessed or created – see https://dev.mendeley.com/methods/#core-document-attributes

    Thread Starter Chriber

    (@chriber)

    Hi,

    Thanks, awesome, works like a charm with these settings:
    sortby=”created” sortorder=”desc” groupby=”year” grouporder=”desc”

    Merry Christmas and a Happy New Year!
    Chris

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attributes sortbyorder and groupbyorder have no effect’ is closed to new replies.