See Doc.SortIndex. Dir.SortIndex is the same, but applies to the directory rather than the document. Used when sorting sub directories within a parent directory.