Get first N items sorted by a key in DynamoDB
<p>I thought this would be easy but I can't figure it out.</p>

<p>I have a DynamoDB table where all the items have the same attributes. One of the attributes is a numeric one named <code>ytd</code>. I simply want the first 5 items sorted by <code>ytd</code>.</p>