title: DynamoDB sorting data with sort key not working
body: <p>I'm using dynamoDb to store some additional info but I have some troubles sorting my data.</p>
  
  <p>I have the following create syntax where I have a <code>storeId</code> and <code>number</code> keys. I set the <code>number</code> as sort key, but the problem is that the data isn't sorted at all.</p>
  
  <pre><code>$response = $dynamoDb-&gt;createTable([
      'TableName' =&gt; 'foo',
      'KeySchema' =&gt; [
          [
              'AttributeName' =&gt; 'storeId',
              'KeyType' =&gt; 'HASH'  //Partition key
          ],
          [
              'AttributeName' =&gt; 'number',
              'KeyType' =&gt; 'RANGE' // sort Key
          ]
      ],
      'AttributeDefinitions' =&gt; [
          [
              'AttributeName' =&gt; 'storeId',
              'AttributeType' =&gt; 'N'
          ],
          [
              'AttributeName' =&gt; 'number',
              'AttributeType' =&gt; 'N'
          ]
      ],
      'ProvisionedThroughput' =&gt; [
          'ReadCapacityUnits' =&gt; 20,
          'WriteCapacityUnits' =&gt; 20
      ]
  ]);
  </code></pre>
  
  <p>My scan params:</p>
  
  <pre><code>$scanParams = [
      'TableName' =&gt; 'foo',
      'ProjectionExpression' =&gt; '#storeId, #number',
      'FilterExpression' =&gt; '#number &gt;= :n',
      'ExpressionAttributeNames'=&gt; [ '#storeId' =&gt; 'storeId', '#number' =&gt; 'number'],
      'ExpressionAttributeValues' =&gt; [
          ':n' =&gt; ['N' =&gt; $number]
      ]
  ];
  </code></pre>
  
  <p>The result of my scan:</p>
  
  <pre><code>StoreId number
  68001   80000
  25000   37000
  463501  527000
  4800001 5300000
  360001  400000
  2000001 2600000
  </code></pre>
  
  <p>As you can see, the data isn't sorted on the number property.</p>