DocumentView - Default sort order and view mode

By default the FlexDocumentView starts with the following settings

ViewMode: Image
SortOrder: Name, ascending

The view mode can be changed with the property ViewSettings.ViewMode.

The initial sort order can be changed with the property InitialSort.

The foolwing values are possible:

N  oder by name
D  order by date
S  order by size
+  ascending
-  descending

You can combine several values like this

view.InitialSort = "D-N+"

The specification whether ascending or descending sorting is optional. If this is missing, ascending sorting is used.