---
title: "folderPane.sortMode Property  ActiveX/Java Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/JA_P_J_$au_folderPane_sortMode.htm
product: "Upload Suite 8"
---

# folderPane.sortMode Property ActiveX/Java Uploader JavaScript

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
Gets or sets a sort mode of the folder pane.

## Syntax
 
```
$au.uploader({
    folderPane: {
        //...other params...
        sortMode: "Name",
        //...other params...
    }
})
```

```
$au.uploader('uploaderID').folderPane().sortMode(value);
value = $au.uploader('uploaderID').folderPane().sortMode();
```
 
### Property Value
 
Type: **String**
 
The sort mode of the folder 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. |
 
**Note** 
The sort mode cannot be set to `Unsorted` value manually.
 
Default value is **"Name"**.

## Remarks
 
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 folder pane.
 
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.

## See Also
 
### Reference
 
- [Aurigma.ImageUploader.FolderPane.SortMode ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_FolderPane_SortMode.htm.md)
- [FolderPane.SortMode PHP PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_P_FolderPane_SortMode.htm.md)
