{"action":"created","issue":{"url":"https://api.github.com/repos/zooniverse/Talk-Api/issues/114","repository_url":"https://api.github.com/repos/zooniverse/Talk-Api","labels_url":"https://api.github.com/repos/zooniverse/Talk-Api/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/zooniverse/Talk-Api/issues/114/comments","events_url":"https://api.github.com/repos/zooniverse/Talk-Api/issues/114/events","html_url":"https://github.com/zooniverse/Talk-Api/issues/114","id":225649209,"number":114,"title":"Conversation messages are unsorted","user":{"login":"eatyourgreens","id":59547,"avatar_url":"https://avatars3.githubusercontent.com/u/59547?v=4","gravatar_id":"","url":"https://api.github.com/users/eatyourgreens","html_url":"https://github.com/eatyourgreens","followers_url":"https://api.github.com/users/eatyourgreens/followers","following_url":"https://api.github.com/users/eatyourgreens/following{/other_user}","gists_url":"https://api.github.com/users/eatyourgreens/gists{/gist_id}","starred_url":"https://api.github.com/users/eatyourgreens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eatyourgreens/subscriptions","organizations_url":"https://api.github.com/users/eatyourgreens/orgs","repos_url":"https://api.github.com/users/eatyourgreens/repos","events_url":"https://api.github.com/users/eatyourgreens/events{/privacy}","received_events_url":"https://api.github.com/users/eatyourgreens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-02T10:04:40Z","updated_at":"2017-10-10T09:03:44Z","closed_at":null,"author_association":"OWNER","body":"[Reported on Talk](https://www.zooniverse.org/talk/17/311244) by _am.zooni_ and a couple of other people. Only seems to occur for relatively long PM conversations.\r\n\r\nThe PM inbox requests conversation messages by `conversation_id` without specifying a sort order.\r\n`talkClient.type('messages').get({conversation_id, page_size: count}) # show all of them`\r\n\r\nI'd expect the resulting query to come back sorted by message ID, but the responses are being returned in a seemingly random order. This makes it pretty much impossible to follow the thread of a conversation in your inbox.\r\n\r\nHere's a sample response supplied by _am.zooni_ for conversation 2387\r\n```json\r\n{\r\n\"messages\": [\r\n{\r\n\"href\": \"/messages/8753\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1300590\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-17T01:39:47.384Z\",\r\n\"id\": \"8753\",\r\n\"updated_at\": \"2017-03-17T01:39:47.384Z\",\r\n\"user_id\": \"1300590\"\r\n},\r\n{\r\n\"href\": \"/messages/8754\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1220914\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-17T13:47:38.960Z\",\r\n\"id\": \"8754\",\r\n\"updated_at\": \"2017-03-17T13:47:38.960Z\",\r\n\"user_id\": \"1220914\"\r\n},\r\n{\r\n\"href\": \"/messages/9240\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1300590\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-30T23:54:13.078Z\",\r\n\"id\": \"9240\",\r\n\"updated_at\": \"2017-03-30T23:54:13.078Z\",\r\n\"user_id\": \"1300590\"\r\n},\r\n{\r\n\"href\": \"/messages/9234\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1220914\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-30T23:14:57.974Z\",\r\n\"id\": \"9234\",\r\n\"updated_at\": \"2017-03-30T23:14:57.974Z\",\r\n\"user_id\": \"1220914\"\r\n},\r\n{\r\n\"href\": \"/messages/9235\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1300590\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-30T23:33:11.244Z\",\r\n\"id\": \"9235\",\r\n\"updated_at\": \"2017-03-30T23:33:11.244Z\",\r\n\"user_id\": \"1300590\"\r\n},\r\n{\r\n\"href\": \"/messages/9238\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1220914\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-30T23:50:00.292Z\",\r\n\"id\": \"9238\",\r\n\"updated_at\": \"2017-03-30T23:50:00.292Z\",\r\n\"user_id\": \"1220914\"\r\n},\r\n{\r\n\"href\": \"/messages/9236\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1220914\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-30T23:40:12.405Z\",\r\n\"id\": \"9236\",\r\n\"updated_at\": \"2017-03-30T23:40:12.405Z\",\r\n\"user_id\": \"1220914\"\r\n},\r\n{\r\n\"href\": \"/messages/9237\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1300590\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-03-30T23:44:40.143Z\",\r\n\"id\": \"9237\",\r\n\"updated_at\": \"2017-03-30T23:44:40.143Z\",\r\n\"user_id\": \"1300590\"\r\n},\r\n{\r\n\"href\": \"/messages/9876\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1300590\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-04-16T12:12:15.812Z\",\r\n\"id\": \"9876\",\r\n\"updated_at\": \"2017-04-16T12:12:15.812Z\",\r\n\"user_id\": \"1300590\"\r\n},\r\n{\r\n\"href\": \"/messages/9877\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1220914\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-04-16T13:47:05.596Z\",\r\n\"id\": \"9877\",\r\n\"updated_at\": \"2017-04-16T13:47:05.596Z\",\r\n\"user_id\": \"1220914\"\r\n},\r\n{\r\n\"href\": \"/messages/9931\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1300590\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-04-17T17:14:04.507Z\",\r\n\"id\": \"9931\",\r\n\"updated_at\": \"2017-04-17T17:14:04.507Z\",\r\n\"user_id\": \"1300590\"\r\n},\r\n{\r\n\"href\": \"/messages/10038\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1300590\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-04-20T01:22:40.849Z\",\r\n\"id\": \"10038\",\r\n\"updated_at\": \"2017-04-20T01:22:40.849Z\",\r\n\"user_id\": \"1300590\"\r\n},\r\n{\r\n\"href\": \"/messages/10039\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1220914\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-04-20T01:38:40.600Z\",\r\n\"id\": \"10039\",\r\n\"updated_at\": \"2017-04-20T01:38:40.600Z\",\r\n\"user_id\": \"1220914\"\r\n},\r\n{\r\n\"href\": \"/messages/10032\",\r\n\"links\": {\r\n\"conversation\": \"2387\",\r\n\"user\": \"1220914\"\r\n},\r\n\"body\": \"<snip>\",\r\n\"conversation_id\": \"2387\",\r\n\"created_at\": \"2017-04-19T23:36:58.259Z\",\r\n\"id\": \"10032\",\r\n\"updated_at\": \"2017-04-19T23:36:58.259Z\",\r\n\"user_id\": \"1220914\"\r\n}\r\n],\r\n\"links\": {\r\n\"messages.conversation\": {\r\n\"href\": \"/conversations/{messages.conversation}\",\r\n\"type\": \"conversations\"\r\n}\r\n},\r\n\"meta\": {\r\n\"messages\": {\r\n\"page\": 1,\r\n\"page_size\": 14,\r\n\"count\": 14,\r\n\"include\": [\r\n\r\n ],\r\n\"page_count\": 1,\r\n\"previous_page\": null,\r\n\"next_page\": null,\r\n\"first_href\": \"/messages?page_size=14\\u0026conversation_id=2387\",\r\n\"previous_href\": null,\r\n\"next_href\": null,\r\n\"last_href\": \"/messages?page_size=14\\u0026conversation_id=2387\",\r\n\"current_sort\": \"\",\r\n\"default_sort\": null,\r\n\"sortable_attributes\": [\r\n\"conversation_id\",\r\n\"created_at\"\r\n]\r\n}\r\n}\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/zooniverse/Talk-Api/issues/comments/335408874","html_url":"https://github.com/zooniverse/Talk-Api/issues/114#issuecomment-335408874","issue_url":"https://api.github.com/repos/zooniverse/Talk-Api/issues/114","id":335408874,"user":{"login":"eatyourgreens","id":59547,"avatar_url":"https://avatars3.githubusercontent.com/u/59547?v=4","gravatar_id":"","url":"https://api.github.com/users/eatyourgreens","html_url":"https://github.com/eatyourgreens","followers_url":"https://api.github.com/users/eatyourgreens/followers","following_url":"https://api.github.com/users/eatyourgreens/following{/other_user}","gists_url":"https://api.github.com/users/eatyourgreens/gists{/gist_id}","starred_url":"https://api.github.com/users/eatyourgreens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eatyourgreens/subscriptions","organizations_url":"https://api.github.com/users/eatyourgreens/orgs","repos_url":"https://api.github.com/users/eatyourgreens/repos","events_url":"https://api.github.com/users/eatyourgreens/events{/privacy}","received_events_url":"https://api.github.com/users/eatyourgreens/received_events","type":"User","site_admin":false},"created_at":"2017-10-10T09:03:44Z","updated_at":"2017-10-10T09:03:44Z","author_association":"OWNER","body":"Bumping this because it came up again on Talk today. https://www.zooniverse.org/talk/17/311244?comment=754212&page=2"}}
{"actor":{"display_login":"eatyourgreens"}}