How to do a basic sort in DynamoDb?

Viewed 4890

Dynamodb can make the simplest of database operations difficult. I have the following table and all I want to do is simply sort by the due column. How is this achieved in DynamoDb? I read everything I could find online and there doesn't seem to be a straightforward walk through anywhere.

payor    |  amount  |  due  | paid
----------------------------------
Ally     |  200.00  |   13  |    1
Chase    |   80.00  |    2  |    0
Wells    |   30.00  |   17  |    1
Directv  |  150.00  |    5  |    0

So without considering the payor, amount or paid columns, how can I simply sort on the due column.

2 Answers
Related