{"action":"closed","issue":{"url":"https://api.github.com/repos/SAP/openui5/issues/631","labels_url":"https://api.github.com/repos/SAP/openui5/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/SAP/openui5/issues/631/comments","events_url":"https://api.github.com/repos/SAP/openui5/issues/631/events","html_url":"https://github.com/SAP/openui5/issues/631","id":110397442,"number":631,"title":"Sorter can not handle obejts e.g. dates when grouping by dates","user":{"login":"ReinhardF","id":15029007,"avatar_url":"https://avatars.githubusercontent.com/u/15029007?v=3","gravatar_id":"","url":"https://api.github.com/users/ReinhardF","html_url":"https://github.com/ReinhardF","followers_url":"https://api.github.com/users/ReinhardF/followers","following_url":"https://api.github.com/users/ReinhardF/following{/other_user}","gists_url":"https://api.github.com/users/ReinhardF/gists{/gist_id}","starred_url":"https://api.github.com/users/ReinhardF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReinhardF/subscriptions","organizations_url":"https://api.github.com/users/ReinhardF/orgs","repos_url":"https://api.github.com/users/ReinhardF/repos","events_url":"https://api.github.com/users/ReinhardF/events{/privacy}","received_events_url":"https://api.github.com/users/ReinhardF/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SAP/openui5/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/SAP/openui5/labels/enhancement","name":"enhancement","color":"0000ff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-08T08:30:06Z","updated_at":"2015-10-09T06:50:24Z","closed_at":"2015-10-09T06:50:24Z","body":"It should be possible to also group by objets e.g. dates:\r\n\r\n```\r\n/**\r\n\t\t * Returns a group object, at least containing a key property for group detection.\r\n\t\t * May contain additional properties as provided by a custom group function.\r\n\t\t * \r\n\t\t * @param {sap.ui.model.Context} oContext the binding context\r\n\t\t * @return {object} An object containing a key property and optional custom properties\r\n\t\t * @public\r\n\t\t */\r\n\t\tgetGroup : function(oContext) {\r\n\t\t\tvar oGroup = this.fnGroup(oContext);\r\n\t\t\tif (typeof oGroup === \"string\" || typeof oGroup === \"number\" || typeof oGroup === \"boolean\" || oGroup == null) {\r\n\t\t\t\toGroup = {\r\n\t\t\t\t\tkey: oGroup\r\n\t\t\t\t};\r\n\t\t\t} \r\n...\r\n```\r\n\r\nI will provide a pull request to fix this issue"}}