{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1311","labels_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1311/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1311/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1311/events","html_url":"https://github.com/elastic/elasticsearch-net/issues/1311","id":68769583,"number":1311,"title":"Normalize Sort in 2.0","user":{"login":"Mpdreamz","id":245275,"avatar_url":"https://avatars.githubusercontent.com/u/245275?v=3","gravatar_id":"","url":"https://api.github.com/users/Mpdreamz","html_url":"https://github.com/Mpdreamz","followers_url":"https://api.github.com/users/Mpdreamz/followers","following_url":"https://api.github.com/users/Mpdreamz/following{/other_user}","gists_url":"https://api.github.com/users/Mpdreamz/gists{/gist_id}","starred_url":"https://api.github.com/users/Mpdreamz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mpdreamz/subscriptions","organizations_url":"https://api.github.com/users/Mpdreamz/orgs","repos_url":"https://api.github.com/users/Mpdreamz/repos","events_url":"https://api.github.com/users/Mpdreamz/events{/privacy}","received_events_url":"https://api.github.com/users/Mpdreamz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch-net/labels/v2.0.0","name":"v2.0.0","color":"D3D3D3"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T19:36:06Z","updated_at":"2015-04-15T19:36:06Z","closed_at":null,"body":"`Sort()` on `SearchDescriptor` works in an unexpected way namely you can call it multiple times and mutate `SearchDescriptor`'s state. Where everywhere else chaining the same method twice will override the previous value in a descriptors state. \r\n\r\nProposal change from: \r\n\r\n```csharp\r\nclient.Search<T>(s=>s\r\n    .Sort()\r\n    .SortScript()\r\n)\r\n```\r\n\r\nto\r\n\r\n```csharp\r\nclient.Search<T>(s=>s\r\n    .Sort(sort=>sort\r\n          .Ascending()\r\n          .Descending()\r\n          .ScriptDescending()\r\n         ....\r\n    )\r\n```\r\n"}}