Skip to content

Sorting? #7

@dickiedyce

Description

@dickiedyce

Just a quick query - would it be possible to add a sort? or at least respect the sort in the supplied collection?

I have a huge list of back-catalogue of articles tagged as reviews, which start in 1996 - and are only really there for my benefit. The the reviews collection looks like this:

reviews: ->
    @getCollection('documents').findAllLive({relativeOutDirPath: 'posts', tags: $in: 'Reviews' }, [{date: -1}])

and the options for the tag

    plugins:
        # Tags
        tags:
            extension: '.html.eco'
            injectDocumentHelper: (document) ->
                document.setMeta(
                    layout: 'default'
                        data: """
                            <%- @partial('tag', @) %>
                            """
                )

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions