/**
 * Show and hide the map layers
 */
Template.componentPage.events({
    'click .container-map': function(e, template) {
        if ($(e.target).hasClass('natural')) {
            $(e.target).removeClass('natural');
        } else {
            $(e.target).addClass('natural');
        }
    }
});

Template.componentPage.helpers({
    dork: function() {
        return 'whort';
    },
    pages: function() {
        return Pages.find({componentId: this._id});
    }
});

/**
 * Show and hide the map layers
 */
Template.componentPage.events({
    'click .container-map': function(e, template) {
        if ($(e.target).hasClass('natural')) {
            $(e.target).removeClass('natural');
        } else {
            $(e.target).addClass('natural');
        }
    }
});

Template.componentPage.helpers({
    dork: function() {
        return 'whort';
    },
    pages: function() {
        return Pages.find({componentId: this._id}, {sort: {order: 1}});
    }
});

Sort on order to keep items in Lines
Sort on order to keep items in Lines

This was causing a bug where the post items would end up in various
orderes based on the last visit. This sorts them explicitly.
