{"action":"created","issue":{"url":"https://api.github.com/repos/danshannon/javastravav3api/issues/18","labels_url":"https://api.github.com/repos/danshannon/javastravav3api/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/danshannon/javastravav3api/issues/18/comments","events_url":"https://api.github.com/repos/danshannon/javastravav3api/issues/18/events","html_url":"https://github.com/danshannon/javastravav3api/issues/18","id":59339012,"number":18,"title":"List friends activities - order of return is inconsistent when specifying page/size","user":{"login":"danshannon","id":3622948,"avatar_url":"https://avatars.githubusercontent.com/u/3622948?v=3","gravatar_id":"","url":"https://api.github.com/users/danshannon","html_url":"https://github.com/danshannon","followers_url":"https://api.github.com/users/danshannon/followers","following_url":"https://api.github.com/users/danshannon/following{/other_user}","gists_url":"https://api.github.com/users/danshannon/gists{/gist_id}","starred_url":"https://api.github.com/users/danshannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danshannon/subscriptions","organizations_url":"https://api.github.com/users/danshannon/orgs","repos_url":"https://api.github.com/users/danshannon/repos","events_url":"https://api.github.com/users/danshannon/events{/privacy}","received_events_url":"https://api.github.com/users/danshannon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danshannon/javastravav3api/labels/Strava%20issue","name":"Strava issue","color":"fc4c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-28T11:49:28Z","updated_at":"2015-03-22T04:28:24Z","closed_at":null,"body":"`HTTP GET https://www.strava.com/api/v3/activities/following?page=1&per_page=2`\r\nreturns 2 activities - 260787752 and 260788738 (in that order)\r\n\r\n`HTTP GET https://www.strava.com/api/v3/activities/following?page=1&per_page=1`\r\nreturns 1 activity - 260788738\r\n\r\n`HTTP GET https://www.strava.com/api/v3/activities/following?page=2&per_page=1`\r\nreturns 1 activity - 260787752\r\n\r\nThis shows inconsistent ordering of the returned activities (although at least they're the same activities). API documentation says that activities are returned in descending order of start_date (see http://strava.github.io/api/v3/activities/#get-feed)\r\n\r\nFurther testing reveals that the correct start date order (descending) is 260787752, 260788738. So the pages with per_page = 1 are returned in the wrong order.\r\n\r\nIf we extend this to asking for `HTTP GET https://www.strava.com/api/v3/activities/following?page=1&per_page=3`, and then asking individually for pages 1, 2 and 3 of size 1, we get the following:\r\n\r\n```\r\nALL : 260787752 : Sat Feb 28 16:33:54 EST 2015\r\n      260788738 : Sat Feb 28 16:03:51 EST 2015\r\n      260787781 : Sat Feb 28 16:02:22 EST 2015\r\n     \r\npg1 : 260788738 : Sat Feb 28 16:03:51 EST 2015\r\npg2 : 260787752 : Sat Feb 28 16:33:54 EST 2015\r\npg3 : 260787781 : Sat Feb 28 16:02:22 EST 2015\r\n```\r\nWhich is WAY more confusing."},"comment":{"url":"https://api.github.com/repos/danshannon/javastravav3api/issues/comments/84519975","html_url":"https://github.com/danshannon/javastravav3api/issues/18#issuecomment-84519975","issue_url":"https://api.github.com/repos/danshannon/javastravav3api/issues/18","id":84519975,"user":{"login":"danshannon","id":3622948,"avatar_url":"https://avatars.githubusercontent.com/u/3622948?v=3","gravatar_id":"","url":"https://api.github.com/users/danshannon","html_url":"https://github.com/danshannon","followers_url":"https://api.github.com/users/danshannon/followers","following_url":"https://api.github.com/users/danshannon/following{/other_user}","gists_url":"https://api.github.com/users/danshannon/gists{/gist_id}","starred_url":"https://api.github.com/users/danshannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danshannon/subscriptions","organizations_url":"https://api.github.com/users/danshannon/orgs","repos_url":"https://api.github.com/users/danshannon/repos","events_url":"https://api.github.com/users/danshannon/events{/privacy}","received_events_url":"https://api.github.com/users/danshannon/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T04:28:24Z","updated_at":"2015-03-22T04:28:24Z","body":"No, not fixed yet :("}}