{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/pilot/issues/8","labels_url":"https://api.github.com/repos/fastlane/pilot/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/pilot/issues/8/comments","events_url":"https://api.github.com/repos/fastlane/pilot/issues/8/events","html_url":"https://github.com/fastlane/pilot/issues/8","id":96802116,"number":8,"title":"pilot builds output unsorted when version number stays constant ","user":{"login":"ekurutepe","id":321325,"avatar_url":"https://avatars.githubusercontent.com/u/321325?v=3","gravatar_id":"","url":"https://api.github.com/users/ekurutepe","html_url":"https://github.com/ekurutepe","followers_url":"https://api.github.com/users/ekurutepe/followers","following_url":"https://api.github.com/users/ekurutepe/following{/other_user}","gists_url":"https://api.github.com/users/ekurutepe/gists{/gist_id}","starred_url":"https://api.github.com/users/ekurutepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekurutepe/subscriptions","organizations_url":"https://api.github.com/users/ekurutepe/orgs","repos_url":"https://api.github.com/users/ekurutepe/repos","events_url":"https://api.github.com/users/ekurutepe/events{/privacy}","received_events_url":"https://api.github.com/users/ekurutepe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-23T12:26:18Z","updated_at":"2015-09-12T16:49:11Z","closed_at":null,"body":"I haven't checked the code yet but I assume the output is sorted according to version number. \r\n\r\nIf the version number stays constant and the build number increases the output is unsorted:\r\n\r\n<img width=\"526\" alt=\"screen shot 2015-07-23 at 14 23 59\" src=\"https://cloud.githubusercontent.com/assets/321325/8850225/9e153590-3146-11e5-89d5-91a51d80ade2.png\">\r\n\r\nI guess it should be sorted according to version number and build number. "},"comment":{"url":"https://api.github.com/repos/fastlane/pilot/issues/comments/139796356","html_url":"https://github.com/fastlane/pilot/issues/8#issuecomment-139796356","issue_url":"https://api.github.com/repos/fastlane/pilot/issues/8","id":139796356,"user":{"login":"lacostej","id":24282,"avatar_url":"https://avatars.githubusercontent.com/u/24282?v=3","gravatar_id":"","url":"https://api.github.com/users/lacostej","html_url":"https://github.com/lacostej","followers_url":"https://api.github.com/users/lacostej/followers","following_url":"https://api.github.com/users/lacostej/following{/other_user}","gists_url":"https://api.github.com/users/lacostej/gists{/gist_id}","starred_url":"https://api.github.com/users/lacostej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacostej/subscriptions","organizations_url":"https://api.github.com/users/lacostej/orgs","repos_url":"https://api.github.com/users/lacostej/repos","events_url":"https://api.github.com/users/lacostej/events{/privacy}","received_events_url":"https://api.github.com/users/lacostej/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T16:49:11Z","updated_at":"2015-09-12T16:49:11Z","body":"By completely untested, it's not 100%. I did the following tests:\r\n\r\n* run pilot on my app (which has currently only one build, and zero processing builds)\r\n\r\n* added this test to spaceship\r\n\r\n`````\r\n    it \"XXXX\" do\r\n      builds = app.build_trains.values.collect{ |t| t.builds }.flatten\r\n      builds.sort! {|a,b| a.upload_date <=> b.upload_date }\r\n      puts builds[0]\r\n    end\r\n`````\r\nand checked the result manually :)"}}