_Table.Sort(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sorts the rows of the Table by the property specified in SortProperty
and resets the current row to just before the first row in the Table.
public void Sort (string SortProperty, object Descending);
Public Sub Sort (SortProperty As String, Optional Descending As Object)
Parameters
- SortProperty
- String
Specifies the property to use to sort the rows of the Table.
- Descending
- Object
Whether to sort the Table in descending order.
Remarks
SortProperty
can be any explicit built-in property or custom property, with the exception of binary and multi-valued properties. The property must be referenced by its explicit string name; it cannot be referenced by namespace. For further information on specifying sort properties, see Sorting Items in a Folder
Sorting the table is equivalent to calling a MoveToStart() method. The cursor will be positioned to the start of the Table.
If Table.Sort and then Restrict(String) are called, the filtered items in the new Table will be sorted by the same SortProperty
and SortOrder
.
Table.Sort only supports sorting on a single column.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기