By default the FlexDocumentView starts with the following settings
SortOrder: Name, ascending
The view mode can be changed with the property
The initial sort order can be changed with the property
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.