title: Ordered Hash Keys in dynamodb
body: <p>My dynamo db tables has hash key and range Key  and other data columns which we can insert .
  In dynamo db what i understood is    that when items are inserted  in GSI/Base table  then items get sorted  in ascending order based on range key and hash key is not ordered.
  Example  :</p>
  
  <p>hashId - rangeKey</p>
  
  <p>1   -    1</p>
  
  <p>1   -    2</p>
  
  <p>1   - 3</p>
  
  <p>3   - 1</p>
  
  <p>3 -     2</p>
  
  <p>3   - 3</p>
  
  <p>2   -1</p>
  
  <p>2   -2</p>
  
  <p>2   -3</p>
  
  <p>Is there any way we can have a ordered hash keys as well in dynamo db?</p>
  
  <p>like this when we save data in any random order : </p>
  
  <p>hashId  -rangeId </p>
  
  <p>1   -1</p>
  
  <p>1-  2</p>
  
  <p>1-  3</p>
  
  <p>2    -1</p>
  
  <p>2   -2</p>
  
  <p>2   -3</p>
  
  <p>3   -1</p>
  
  <p>3-  2</p>
  
  <p>3   -3</p>