Should the $params be sorted alphabetically?

Eg, say your dynamic filter is {width: 100, height: 200, extra: {'key': 'val'}}

If I then generate a image using {height: 200, width: 100, extra: {'key': 'val'}} it will generate a different hash.

I think that these parameters should be sorted to try and minimise duplicate image generation. Obviously the params would need to cascade incase their are multiple array within the config.

Thoughts?