{"action":"opened","issue":{"url":"https://api.github.com/repos/KleeGroup/vertigo/issues/59","repository_url":"https://api.github.com/repos/KleeGroup/vertigo","labels_url":"https://api.github.com/repos/KleeGroup/vertigo/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/KleeGroup/vertigo/issues/59/comments","events_url":"https://api.github.com/repos/KleeGroup/vertigo/issues/59/events","html_url":"https://github.com/KleeGroup/vertigo/issues/59","id":135445936,"number":59,"title":"[Search] Json API of facet/facet values are unordered, should refactor from Object to Array structure","user":{"login":"NPi2Loup","id":3080111,"avatar_url":"https://avatars.githubusercontent.com/u/3080111?v=3","gravatar_id":"","url":"https://api.github.com/users/NPi2Loup","html_url":"https://github.com/NPi2Loup","followers_url":"https://api.github.com/users/NPi2Loup/followers","following_url":"https://api.github.com/users/NPi2Loup/following{/other_user}","gists_url":"https://api.github.com/users/NPi2Loup/gists{/gist_id}","starred_url":"https://api.github.com/users/NPi2Loup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NPi2Loup/subscriptions","organizations_url":"https://api.github.com/users/NPi2Loup/orgs","repos_url":"https://api.github.com/users/NPi2Loup/repos","events_url":"https://api.github.com/users/NPi2Loup/events{/privacy}","received_events_url":"https://api.github.com/users/NPi2Loup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-22T15:07:43Z","updated_at":"2016-02-22T15:07:43Z","closed_at":null,"body":"Was unordered in vertigo v0.9.0.\r\nIn v0.9.1 they are ordered, but miss a code/label dissociation\r\n\r\nNew API should be like:\r\n```JSON\r\n{\r\n   \"list\":[ { <<indexObject>> }, { <<indexObject>> } , ...],\r\n   \"facets\":[ \r\n      { \"FCT_ONE\":[ \r\n         {\"code\":\"term1\", \"count\":12, \"label\":\"term1\"}, \r\n         {\"code\":\"term2\", \"count\":10, \"label\":\"term2\"}, ...\r\n      ] }, \r\n      { \"FCT_TWO\":[ \r\n         {\"code\":\"term20\", \"count\":15, \"label\":\"term20\"}, \r\n         {\"code\":\"term21\", \"count\":8, \"label\":\"term21\"}, ...\r\n       ] } \r\n   ],\r\n   \"totalCount\":10045\r\n}\r\n```"}}