{"action":"created","issue":{"url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/issues/588","repository_url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation","labels_url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/issues/588/comments","events_url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/issues/588/events","html_url":"https://github.com/Orckestra/C1-CMS-Foundation/issues/588","id":335335168,"node_id":"MDU6SXNzdWUzMzUzMzUxNjg=","number":588,"title":"[SQL] Sorting is ignored on the DateTime fields when used for grouping","user":{"login":"wwwysocki","id":14821915,"node_id":"MDQ6VXNlcjE0ODIxOTE1","avatar_url":"https://avatars3.githubusercontent.com/u/14821915?v=4","gravatar_id":"","url":"https://api.github.com/users/wwwysocki","html_url":"https://github.com/wwwysocki","followers_url":"https://api.github.com/users/wwwysocki/followers","following_url":"https://api.github.com/users/wwwysocki/following{/other_user}","gists_url":"https://api.github.com/users/wwwysocki/gists{/gist_id}","starred_url":"https://api.github.com/users/wwwysocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwwysocki/subscriptions","organizations_url":"https://api.github.com/users/wwwysocki/orgs","repos_url":"https://api.github.com/users/wwwysocki/repos","events_url":"https://api.github.com/users/wwwysocki/events{/privacy}","received_events_url":"https://api.github.com/users/wwwysocki/received_events","type":"User","site_admin":false},"labels":[{"id":265075718,"node_id":"MDU6TGFiZWwyNjUwNzU3MTg=","url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/labels/bug","name":"bug","color":"fc2929","default":true},{"id":280108060,"node_id":"MDU6TGFiZWwyODAxMDgwNjA=","url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/labels/severity:medium","name":"severity:medium","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T09:49:44Z","updated_at":"2018-06-26T12:43:08Z","closed_at":"2018-06-25T13:57:59Z","author_association":"CONTRIBUTOR","body":"**Repro**:\r\n\r\n1. Use an SQL-based website.\r\n2. Create a global data type that has a field of the type \"Date\"\r\n3. Sort by this field in descending order (Z-A)\r\n4. Group by this field\r\n5. Add 2+ items of this type with different dates\r\n6. Check how the grouping folders are sorted\r\n7. [optional] Compare it with the same setup on an XML-based website\r\n\r\n**Actual**:\r\n\r\nThe groups are sorted in ascending order (A-Z)\r\n\r\n**Expected**:\r\n\r\nThe groups are sorted in descending order (Z-A)\r\n\r\n![chrome_2018-06-25_12-43-19](https://user-images.githubusercontent.com/14821915/41843410-25c096c8-7876-11e8-8736-73a8c95cf01c.png)\r\n\r\n\r\n![chrome_2018-06-25_12-43-36](https://user-images.githubusercontent.com/14821915/41843423-2d9499da-7876-11e8-83a5-dbd64b4418cf.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/issues/comments/400293798","html_url":"https://github.com/Orckestra/C1-CMS-Foundation/issues/588#issuecomment-400293798","issue_url":"https://api.github.com/repos/Orckestra/C1-CMS-Foundation/issues/588","id":400293798,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDI5Mzc5OA==","user":{"login":"wwwysocki","id":14821915,"node_id":"MDQ6VXNlcjE0ODIxOTE1","avatar_url":"https://avatars3.githubusercontent.com/u/14821915?v=4","gravatar_id":"","url":"https://api.github.com/users/wwwysocki","html_url":"https://github.com/wwwysocki","followers_url":"https://api.github.com/users/wwwysocki/followers","following_url":"https://api.github.com/users/wwwysocki/following{/other_user}","gists_url":"https://api.github.com/users/wwwysocki/gists{/gist_id}","starred_url":"https://api.github.com/users/wwwysocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwwysocki/subscriptions","organizations_url":"https://api.github.com/users/wwwysocki/orgs","repos_url":"https://api.github.com/users/wwwysocki/repos","events_url":"https://api.github.com/users/wwwysocki/events{/privacy}","received_events_url":"https://api.github.com/users/wwwysocki/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T12:43:08Z","updated_at":"2018-06-26T12:43:08Z","author_association":"CONTRIBUTOR","body":"Verified on 20180626.2 (dev)"}}
{"actor":{"display_login":"wwwysocki"}}