---
title: "uploadPane.sort(String,String) Method  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_M_J_$au_uploadPane_sort_2_393e8f3d.htm
product: "Upload Suite 8"
---

# 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
 
```
$au.imageUploaderFlash('uploaderID').uploadPane().sort(mode, order);
```
 
### Parameters
 
 - mode
     - 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. |
 - order
     - 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). |

## 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](https://www.aurigma.com/docs/us8/FH_P_J_$au_uploadPane_sortMode.htm.md) and [sortOrder](https://www.aurigma.com/docs/us8/FH_P_J_$au_uploadPane_sortOrder.htm.md) properties.

## See Also
 
### Reference
 
- [sortMode Property](https://www.aurigma.com/docs/us8/FH_P_J_$au_uploadPane_sortMode.htm.md)
- [sortOrder Property](https://www.aurigma.com/docs/us8/FH_P_J_$au_uploadPane_sortOrder.htm.md)
