OrderBy Parameter (Select-SFTP Cmdlet)
The order in which columns will be returned.
Select-SFTP -OrderBy string
The order in which columns will be returned. The value of this parameter has the same syntax as the ORDER BY clause of an SQL statement. You can specify multiple columns and the order to sort each by in a comma-separated list.
Select-SFTP -Connection $connection -Table "Notes" -Columns "Filename ASC" -Where "FilePath = '/documents/doc.txt'"