Skip to content

Sorting entries #12

@markschl

Description

@markschl

Hi

I had the (maybe exotic) problem that a feed was oddly sorted (not by date). To handle this I modified the getFeed Snippet to accept a &sortby and a &sortdir parameter. &sortby allows to sort by any of the 'fields' that are available as placeholders. It also handles 'nested' fields found in RDF feeds (e.g.: dc.date).

I thought I could share it here. The modified code is found here: http://pastebin.com/QF3wttVp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions