Sorts items in the upload list in accordance with the specified order and criteria.
$au.imageUploaderFlash('uploaderID').uploadPane().sort(mode, order);
Type: String
The sort criteria 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. |
Type: String
The sort direction for the upload pane.
The following values are supported:
| Value | Description |
|---|---|
| Asc | Items are sorted ascendantly (smallest to largest). |
| Desc | Items are sorted descendantly (largest to smallest). |
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.