{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/3314","labels_url":"https://api.github.com/repos/elastic/kibana/issues/3314/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/3314/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/3314/events","html_url":"https://github.com/elastic/kibana/issues/3314","id":60593527,"number":3314,"title":"Incorrect ordering of terms for unique count with sub aggregation","user":{"login":"ab-taktik","id":5154448,"avatar_url":"https://avatars.githubusercontent.com/u/5154448?v=3","gravatar_id":"","url":"https://api.github.com/users/ab-taktik","html_url":"https://github.com/ab-taktik","followers_url":"https://api.github.com/users/ab-taktik/followers","following_url":"https://api.github.com/users/ab-taktik/following{/other_user}","gists_url":"https://api.github.com/users/ab-taktik/gists{/gist_id}","starred_url":"https://api.github.com/users/ab-taktik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab-taktik/subscriptions","organizations_url":"https://api.github.com/users/ab-taktik/orgs","repos_url":"https://api.github.com/users/ab-taktik/repos","events_url":"https://api.github.com/users/ab-taktik/events{/privacy}","received_events_url":"https://api.github.com/users/ab-taktik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/bug","name":"bug","color":"ff0000"}],"state":"open","locked":false,"assignee":{"login":"stormpython","id":3149785,"avatar_url":"https://avatars.githubusercontent.com/u/3149785?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpython","html_url":"https://github.com/stormpython","followers_url":"https://api.github.com/users/stormpython/followers","following_url":"https://api.github.com/users/stormpython/following{/other_user}","gists_url":"https://api.github.com/users/stormpython/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpython/subscriptions","organizations_url":"https://api.github.com/users/stormpython/orgs","repos_url":"https://api.github.com/users/stormpython/repos","events_url":"https://api.github.com/users/stormpython/events{/privacy}","received_events_url":"https://api.github.com/users/stormpython/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-11T00:48:48Z","updated_at":"2015-03-11T02:04:08Z","closed_at":null,"body":"![screen shot 2015-03-10 at 17 45 15](https://cloud.githubusercontent.com/assets/5154448/6588348/a74418d8-c74d-11e4-8ca2-5e7283a67845.png)\r\n![screen shot 2015-03-10 at 17 45 58](https://cloud.githubusercontent.com/assets/5154448/6588347/a730c67a-c74d-11e4-9d9e-933dd8a4e6eb.png)\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/78187050","html_url":"https://github.com/elastic/kibana/issues/3314#issuecomment-78187050","issue_url":"https://api.github.com/repos/elastic/kibana/issues/3314","id":78187050,"user":{"login":"stormpython","id":3149785,"avatar_url":"https://avatars.githubusercontent.com/u/3149785?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpython","html_url":"https://github.com/stormpython","followers_url":"https://api.github.com/users/stormpython/followers","following_url":"https://api.github.com/users/stormpython/following{/other_user}","gists_url":"https://api.github.com/users/stormpython/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpython/subscriptions","organizations_url":"https://api.github.com/users/stormpython/orgs","repos_url":"https://api.github.com/users/stormpython/repos","events_url":"https://api.github.com/users/stormpython/events{/privacy}","received_events_url":"https://api.github.com/users/stormpython/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T02:04:08Z","updated_at":"2015-03-11T02:04:08Z","body":"So this seems to be a bug in the vislib. Just reproduced. The response from elasticsearch seems to return the results in the correct order, however, the chart displays the data out of order."}}