Add the ability to alphabetically sort query string parameters
wowinter13 opened this issue · comments
Vladislav Dyachenko commented
Currently Utils.encode_query_string
serializes an object into string using default order:
Utils.encode_query_string({a: 2, c: 3, b: 1}) # a=2&c=3&b=1
But it would be nice to add the ability to sort query string ascending (maybe by default, like it was done in Httparty
or ActiveSupport to_query
).
Personally for me it was important, when I coded gem using rest-client
and there was a need to generate MD5 from query params sorted alphabetically.