title: How to sort a list by byte-order for AWS-Calls
body: <p>Having a look at <a href="http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html" rel="nofollow">http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html</a> </p>
  
  <p>The following Name-Value Pairs:</p>
  
  <pre><code>Service=AWSECommerceService
  Version=2011-08-01
  AssociateTag=PutYourAssociateTagHere
  Operation=ItemSearch
  SearchIndex=Books
  Keywords=harry+potter
  Timestamp=2015-09-26T14:10:56.000Z
  AWSAccessKeyId=123
  </code></pre>
  
  <blockquote>
    <p>The name-value pairs have been sorted according to byte-order </p>
  </blockquote>
  
  <p>Should result in</p>
  
  <pre><code>AWSAccessKeyId=123
  AssociateTag=PutYourAssociateTagHere
  Keywords=harry%20potter
  Operation=ItemSearch
  SearchIndex=Books
  Service=AWSECommerceService
  Timestamp=2015-09-26T14%3A10%3A56.000Z
  Version=2011-08-01
  </code></pre>
  
  <p>How to achieve this in R?</p>
  
  <p>As far as i can tell they are sorted by their
  <code>as.numeric(charToRaw(name))</code> values. If the first value is equal then they are sorted by the second one, then the third and so on.</p>
  
  <p><strong>Question: How to do this in R?</strong></p>