Ниже метода сканирования работает код. Но я хочу применить группировку и порядок по ASC / DES C
$result = $client->scan(
array(
'TableName' => 'chat',
'ProjectionExpression' => "ChatId, first_name, last_name",
//Select first_name, last_name
//'KeyConditionExpression'=> 'first_name = :value1 AND first_name =
:value2',
'FilterExpression' => 'first_name = :value1 OR first_name =
:value2
OR first_name = :value3',
'ExpressionAttributeValues'=> array(':value1' => array('S' =>
'Sunil'), ':value2' => array('S' => 'Rakesh'), ':value3' =>
array('S' => 'Sudhir')),
//'ScanIndexForward' => false,
//'Limit' => 2
// 'TotalSegments' => 2
)
);