title: Is there a way to prevent Spring Cloud Gateway from reordering query parameters?
body: <p>Spring Cloud Gateway appears to be reordering my query parameters to put duplicate parameters together.</p>
  
  <p>I'm trying to route some requests to one of our end points to a third party system. These requests include some query parameters that need to be in a specific order (including some duplicate parameters), or the third party system returns a 500 error, but upon receiving the initial request with the parameters in the proper order, the Spring Cloud Gateway reorders these parameters to put the duplicates together by the first instance of the parameter.</p>
  
  <p>Example:</p>
  
  <p><code>http://some-url.com/a/path/here?foo=bar&amp;anotherParam=paramValue2&amp;aThirdParam=paramValue3&amp;foo=bar</code></p>
  
  <p>Becomes:</p>
  
  <p><code>http://some-url.com/a/path/here?foo=bar&amp;foo=bar&amp;anotherParam=paramValue2&amp;aThirdParam=paramValue3</code></p>
  
  <p>Where the last parameter was moved to be by the first parameter because they had the same name.</p>
  
  <p>The actual request output I need is for the query parameters to be passed through without change.</p>