Add `sort` functionality

This PR adds the ability to sort. To sort, the adapter now takes `{sort: {AttributeName: 1}}`. 

cc: @Samrudhi