{"action":"created","issue":{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/issues/5","labels_url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/issues/5/comments","events_url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/issues/5/events","html_url":"https://github.com/bcgov/citizen-engagement-web-toolkit/issues/5","id":121777657,"number":5,"title":"Upgrade WP Sage Core Commenting - Part One - Sorting","user":{"login":"juhewitt","id":15350676,"avatar_url":"https://avatars.githubusercontent.com/u/15350676?v=3","gravatar_id":"","url":"https://api.github.com/users/juhewitt","html_url":"https://github.com/juhewitt","followers_url":"https://api.github.com/users/juhewitt/followers","following_url":"https://api.github.com/users/juhewitt/following{/other_user}","gists_url":"https://api.github.com/users/juhewitt/gists{/gist_id}","starred_url":"https://api.github.com/users/juhewitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juhewitt/subscriptions","organizations_url":"https://api.github.com/users/juhewitt/orgs","repos_url":"https://api.github.com/users/juhewitt/repos","events_url":"https://api.github.com/users/juhewitt/events{/privacy}","received_events_url":"https://api.github.com/users/juhewitt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/$1000","name":"$1000","color":"0052cc"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/Bootstrap","name":"Bootstrap","color":"eb6420"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/CSS","name":"CSS","color":"eb6420"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/HTML","name":"HTML","color":"eb6420"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/JavaScript","name":"JavaScript","color":"eb6420"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/jQuery","name":"jQuery","color":"eb6420"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/PHP","name":"PHP","color":"eb6420"},{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/labels/WordPress","name":"WordPress","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-11T19:37:22Z","updated_at":"2016-01-26T23:40:15Z","closed_at":null,"body":"# Sorting\r\n## Background\r\nWe are looking to build upon the default core SAGE framework/WP OOTB commenting system.  As fans of the plug and play model, we are trying to accomplish this in a modular way for obvious reasons.  Through UX testing, our audience has identified three short comings to overcome: sorting, filtering and sequential loading.  This ticket, we are going to focus on Sorting.\r\n\r\n### Story\r\nI want to be able to sort blog comments by date and number of replies so that I can find information more easily to engage in consultations. \r\n\r\n## Acceptance Criteria\r\n1. A user selects a sort by date toggle: \r\n  * the initial state is most recent.  \r\n  * Toggle and the comments are returned by oldest.  \r\n  * Toggle again and the sort and the comments are returned by most recent.\r\n2. A user selects to sort by number of replies toggle, the initial state is default, with no sort applied at all. \r\n  * Toggle once and the comments are returned by the highest number of replies, \r\n  * toggle twice and the comments are returned by the least number of replies, \r\n  * and finally toggle three times and the comments are returned at the default.  \r\n3.  Ideally, the solution will have AJAX response for UX.\r\n\r\n## How to contribute\r\n\r\nWe will evaluate each pull request and choose the best solution to the issue based on the acceptance criteria. Submit the best solution and you could be paid $1000.\r\n\r\nMore than one pull request may be considered for payment on this issue.\r\n\r\nPlease read the [Contribution Guidelines] (https://github.com/bcgov/citizen-engagement-web-toolkit/blob/master/CONTRIBUTING.md) for the Terms that set the rules for participation in a Pay for Pull, including how you’ll get paid if you are successful.\r\n\r\nHave questions? Please post your questions in the comments section below this issue.\r\n\r\nAnd check out our [Partners page] (https://bcdevexchange.org/programs/Citizen%20Engagement%20Web%20Toolkit)  for more information on our work."},"comment":{"url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/issues/comments/175294624","html_url":"https://github.com/bcgov/citizen-engagement-web-toolkit/issues/5#issuecomment-175294624","issue_url":"https://api.github.com/repos/bcgov/citizen-engagement-web-toolkit/issues/5","id":175294624,"user":{"login":"coakenfold","id":748860,"avatar_url":"https://avatars.githubusercontent.com/u/748860?v=3","gravatar_id":"","url":"https://api.github.com/users/coakenfold","html_url":"https://github.com/coakenfold","followers_url":"https://api.github.com/users/coakenfold/followers","following_url":"https://api.github.com/users/coakenfold/following{/other_user}","gists_url":"https://api.github.com/users/coakenfold/gists{/gist_id}","starred_url":"https://api.github.com/users/coakenfold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coakenfold/subscriptions","organizations_url":"https://api.github.com/users/coakenfold/orgs","repos_url":"https://api.github.com/users/coakenfold/repos","events_url":"https://api.github.com/users/coakenfold/events{/privacy}","received_events_url":"https://api.github.com/users/coakenfold/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T23:40:15Z","updated_at":"2016-01-26T23:40:15Z","body":"Does sorting by replies refer to how many replies a single comment has received?\r\n\r\nFor example, given the following:\r\n- Comment A\r\n-- 1st response to comment A\r\n- Comment B\r\n-- 1st response to comment B\r\n-- 2nd response to comment B\r\n-- 3rd response to comment B\r\n- Comment C\r\n- Comment D\r\n\r\n\"Toggle once and the comments are returned by the highest number of replies\" would result in:\r\n- Comment B\r\n- Comment A\r\n- Comment C\r\n- Comment D\r\n\r\n\"toggle twice and the comments are returned by the least number of replies\" would result in:\r\n- Comment C\r\n- Comment D\r\n- Comment A\r\n- Comment B"}}