Ensure that we don't duplicate source codes [RD-45]

I'm not convinced that order matters when it comes to query parameters, but I was told it did when we started. This code preserves the order of parameters in a query string.

All tests pass.