bytespider/jsOAuth — pull request #25 by k7d (2011-11-08 11:41:42+00:00)
Title: Signature string param sorting

According to Oauth spec http://tools.ietf.org/html/rfc5849#section-3.4.1.3.2:

> The parameters are sorted by name, using ascending byte value ordering. If two or more parameters share the same name, they are sorted by their value.

Currently this fails in the following scenario (param1-2 will be before param1):

> param1=x
> param1-2=y

This pull requests contains unit-test & fix.