Method ComparisonByDateModified
ComparisonByDateModified(FileListBoxItem, FileListBoxItem)
Compares two FileListBoxItem objects based on their date modified and other criteria.
public static int ComparisonByDateModified(FileListBoxItem x, FileListBoxItem y)
Parameters
xFileListBoxItemThe first FileListBoxItem to compare. Cannot be null.
yFileListBoxItemThe second FileListBoxItem to compare. Cannot be null.
Returns
- int
A signed integer that indicates the relative order of the two objects:
- Less than zero if
xis less thany. - Zero if
xis equal toy. - Greater than zero if
xis greater thany.
- Less than zero if
Remarks
The comparison considers multiple criteria, including whether the items are folders, their text rank, and their date modified. The exact priority of these criteria is determined by the internal comparison logic.