Gets or sets a sort mode of the upload pane.

Syntax

JavaScript

Initialize

$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();

Property Value

Type: String

The sort mode of the upload pane.

The following values are supported:

ValueDescription
UnsortedItems are unsorted.
NameItems are sorted by name alphabetically.
SizeItems are sorted by file size.
TypeItems are sorted by file type alphabetically.
ModifiedItems are sorted by the date of last modification.
PathItems are sorted by full path.
DimensionsItems are sorted by image dimensions.
Note

The sort mode cannot be set to Unsorted value manually.

Default value is "Unsorted".

Remarks

Sort mode is automatically reset to Unsorted when new items are added or re-arranged via drag-n-drop.

Note

If you set the same value twice, the sort order will toggle between ascending and descending and vice versa.