fix dynamodb key sort