Gets or sets a value specifying how the items are sorted in the upload list.
public function getSortMode() { } public function setSortMode($value) { }
Type: string
The sort mode for the upload pane.
The following values are supported:
Value | Description |
---|---|
Name | Items are sorted alphabetically. |
Size | Items are sorted by file size. |
Type | Items are sorted by mime types. |
Modified | Items are sorted by last modified date. |
Path | Items are sorted by path (makes sense only when you upload folders). |
Unsorted | Items are not sorted automatically. |
Default value is "Unsorted".
Items are automatically arranged when they are added to the upload list. You can use the sort(String, String) method to force items to be sorted with the required mode and order.