{"action":"created","issue":{"url":"https://api.github.com/repos/assemble/assemble/issues/915","repository_url":"https://api.github.com/repos/assemble/assemble","labels_url":"https://api.github.com/repos/assemble/assemble/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/assemble/assemble/issues/915/comments","events_url":"https://api.github.com/repos/assemble/assemble/issues/915/events","html_url":"https://github.com/assemble/assemble/issues/915","id":204003104,"number":915,"title":"Sorting collection of posts in latest version of Assemble","user":{"login":"ashleynolan","id":805184,"avatar_url":"https://avatars.githubusercontent.com/u/805184?v=3","gravatar_id":"","url":"https://api.github.com/users/ashleynolan","html_url":"https://github.com/ashleynolan","followers_url":"https://api.github.com/users/ashleynolan/followers","following_url":"https://api.github.com/users/ashleynolan/following{/other_user}","gists_url":"https://api.github.com/users/ashleynolan/gists{/gist_id}","starred_url":"https://api.github.com/users/ashleynolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashleynolan/subscriptions","organizations_url":"https://api.github.com/users/ashleynolan/orgs","repos_url":"https://api.github.com/users/ashleynolan/repos","events_url":"https://api.github.com/users/ashleynolan/events{/privacy}","received_events_url":"https://api.github.com/users/ashleynolan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-30T12:55:05Z","updated_at":"2017-01-30T12:55:06Z","closed_at":null,"body":"## version \r\n\r\n0.18.1\r\n\r\n## description\r\n\r\nI’m trying to migrate an old site I have from grunt-assemble over to the latest version of assemble (using it with gulp).\r\n\r\nI’ve managed to work out a lot of the differences to upgrade but I’m not really sure how collections now work in the latest versions and how to make a collection of posts and then sort them.\r\n\r\nThe old config I had in grunt-assemble was like this:\r\n\r\n    posts: {\r\n        options: {\r\n\t\t\tcollections: [{\r\n\t\t\t\tname: 'post',\r\n\t\t\t\tsortby: 'posted',\r\n\t\t\t\tsortorder: 'descending'\r\n\t\t\t}],\r\n\t\t\tpermalinks: {\r\n\t\t\t\tstructure: ':url.html'\r\n\t\t\t}\r\n\t\t},\r\n\t\tfiles: [{\r\n\t\t\tcwd: './src/templates/pages/blog/',\r\n\t\t\tdest: '<%= site.destination %>/blog',\r\n\t\t\texpand: true,\r\n\t\t\tsrc: ['**/*.hbs', '**/*.md']\r\n\t\t}]\r\n\t}\r\n\r\nHow can I convert this to work in the latest version of Assemble?  Is there any docs or examples I could take a look at – I had a look through the repo but couldn’t find anything related to collections.\r\n\r\n(For reference – I’ve raised this as a SO question too…)[http://stackoverflow.com/questions/41933320/sorting-collection-of-posts-in-latest-version-of-assemble]"},"comment":{"url":"https://api.github.com/repos/assemble/assemble/issues/comments/276055759","html_url":"https://github.com/assemble/assemble/issues/915#issuecomment-276055759","issue_url":"https://api.github.com/repos/assemble/assemble/issues/915","id":276055759,"user":{"login":"assemblebot","id":16341238,"avatar_url":"https://avatars.githubusercontent.com/u/16341238?v=3","gravatar_id":"","url":"https://api.github.com/users/assemblebot","html_url":"https://github.com/assemblebot","followers_url":"https://api.github.com/users/assemblebot/followers","following_url":"https://api.github.com/users/assemblebot/following{/other_user}","gists_url":"https://api.github.com/users/assemblebot/gists{/gist_id}","starred_url":"https://api.github.com/users/assemblebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/assemblebot/subscriptions","organizations_url":"https://api.github.com/users/assemblebot/orgs","repos_url":"https://api.github.com/users/assemblebot/repos","events_url":"https://api.github.com/users/assemblebot/events{/privacy}","received_events_url":"https://api.github.com/users/assemblebot/received_events","type":"User","site_admin":false},"created_at":"2017-01-30T12:55:06Z","updated_at":"2017-01-30T12:55:06Z","body":"\n@ashleynolan Thanks for the issue! If you're reporting a bug, please be sure to include:\n\n- The version of `assemble` you are using.\n- Your assemblefile.js (This can be in a gist)\n- The commandline output. (Screenshot or gist is fine)\n- What you expected to happen instead.\n\nIf your issue is related to one of the following, please open an issue there:\n  - [grunt-assemble](https://github.com/assemble/grunt-assemble/issues/new) Issues with using assemble in grunt or the grunt-assemble library.\n  - [handlebars-helpers](https://github.com/assemble/handlebars-helpers/issues/new) Issues with using handlebars helpers from the handlebars-helpers library.\n"}}
{"actor":{"display_login":"assemblebot"}}