Gets or sets a sort mode of the upload pane.
$au.uploader({ uploadPane: { //...other params... sortMode: "Unsorted", //...other params... } })Get/Set Value at Runtime
$au.uploader('uploaderID').uploadPane().sortMode(value); value = $au.uploader('uploaderID').uploadPane().sortMode();
Type: String
The sort mode of the upload pane.
The following values are supported:
Value | Description |
---|---|
Unsorted | Items are unsorted. |
Name | Items are sorted by name alphabetically. |
Size | Items are sorted by file size. |
Type | Items are sorted by file type alphabetically. |
Modified | Items are sorted by the date of last modification. |
Path | Items are sorted by full path. |
Dimensions | Items are sorted by image dimensions. |
The sort mode cannot be set to Unsorted
value manually.
Default value is "Unsorted".
Sort mode is automatically reset to Unsorted
when items are rearranged via drag-n-drop or new items are added. It means that when you set a sort mode it is applied only to files which are currently in the upload pane.
If you set the same value twice, the sort order will toggle between ascending and descending and vice versa.