Bugfix: sort resources when suballocating so that the encoding conforms to RFC 3779
Bugfix: sort resources when suballocating so that the encoding conforms to RFC 3779

rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir