uploadPane.sort(String,String) Method HTML5/Flash Uploader JavaScript

Supported technologies:

Sorts items in the upload list in accordance with the specified order and criteria.

Syntax

JavaScript
$au.imageUploaderFlash('uploaderID').uploadPane().sort(mode, order);

Parameters

mode

Type: String

The sort criteria for the upload pane.

The following values are supported:

ValueDescription
NameItems are sorted alphabetically.
SizeItems are sorted by file size.
TypeItems are sorted by mime types.
ModifiedItems are sorted by last modified date.
PathItems are sorted by path (makes sense only when you upload folders).
UnsortedItems are not sorted automatically.
order

Type: String

The sort direction for the upload pane.

The following values are supported:

ValueDescription
AscItems are sorted ascendantly (smallest to largest).
DescItems are sorted descendantly (largest to smallest).

Remarks

If you want the upload list to be re-arranged automatically every time a new item appears in the upload list, you can use sortMode and sortOrder properties.

See Also

Reference