Concept Flow - Local Secondary Index (LSI) concept
Create Table with Partition Key
Add Sort Key to Table
Define LSI with Same Partition Key + Different Sort Key
Insert Items into Table
Query Table Using LSI
Return Items Sorted by LSI Sort Key
LSI lets you query items with the same partition key but sorted by a different sort key defined at table creation.