{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4263","repository_url":"https://api.github.com/repos/ReactiveX/RxJava","labels_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4263/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4263/comments","events_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4263/events","html_url":"https://github.com/ReactiveX/RxJava/issues/4263","id":168506076,"number":4263,"title":"Observable.sort method","user":{"login":"davidmoten","id":318187,"avatar_url":"https://avatars.githubusercontent.com/u/318187?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmoten","html_url":"https://github.com/davidmoten","followers_url":"https://api.github.com/users/davidmoten/followers","following_url":"https://api.github.com/users/davidmoten/following{/other_user}","gists_url":"https://api.github.com/users/davidmoten/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmoten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmoten/subscriptions","organizations_url":"https://api.github.com/users/davidmoten/orgs","repos_url":"https://api.github.com/users/davidmoten/repos","events_url":"https://api.github.com/users/davidmoten/events{/privacy}","received_events_url":"https://api.github.com/users/davidmoten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ReactiveX/RxJava/labels/Feature-Request","name":"Feature-Request","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-31T07:27:05Z","updated_at":"2016-07-31T19:49:30Z","closed_at":null,"body":"I'd like to add `Observable.sort` (or `Observable.sorted`) to the API. I tried this a couple of years ago and it was knocked back but now that people are getting used to the offerings of java 8 streams for instance (and its `.sorted()` method) I thought I'd raise it again.\r\n\r\nIn particular to sort a stream at the moment  I have to call \r\n\r\n`observable.toSortedList().flatMapIterable(x -> x)`\r\n\r\nor using an internal class:\r\n\r\n`observable.toSortedList().flatMapIterable(UtilityFunctions.<T>identity())`\r\n\r\nThis is poor for discoverability, hard to read, and pretty disappointing when I want to show off RxJava's coolness.\r\n\r\nAny takers?"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxJava/issues/comments/236452547","html_url":"https://github.com/ReactiveX/RxJava/issues/4263#issuecomment-236452547","issue_url":"https://api.github.com/repos/ReactiveX/RxJava/issues/4263","id":236452547,"user":{"login":"davidmoten","id":318187,"avatar_url":"https://avatars.githubusercontent.com/u/318187?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmoten","html_url":"https://github.com/davidmoten","followers_url":"https://api.github.com/users/davidmoten/followers","following_url":"https://api.github.com/users/davidmoten/following{/other_user}","gists_url":"https://api.github.com/users/davidmoten/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmoten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmoten/subscriptions","organizations_url":"https://api.github.com/users/davidmoten/orgs","repos_url":"https://api.github.com/users/davidmoten/repos","events_url":"https://api.github.com/users/davidmoten/events{/privacy}","received_events_url":"https://api.github.com/users/davidmoten/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T19:49:30Z","updated_at":"2016-07-31T19:49:30Z","body":"@SherifMakhlouf yes I'd forward the call because I think there are enough operators to support as is."}}
{"actor":{"display_login":"davidmoten"}}