Table of Contents

Method ComparisonByDateModified

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ComparisonByDateModified(FileListBoxItem, FileListBoxItem)

Compares two FileListBoxItem objects based on their date modified and other criteria.

public static int ComparisonByDateModified(FileListBoxItem x, FileListBoxItem y)

Parameters

x FileListBoxItem

The first FileListBoxItem to compare. Cannot be null.

y FileListBoxItem

The second FileListBoxItem to compare. Cannot be null.

Returns

int

A signed integer that indicates the relative order of the two objects:

<ul><li>Less than zero if <code class="paramref">x</code> is less than
<code class="paramref">y</code>.</li><li>Zero if <code class="paramref">x</code>
is equal to <code class="paramref">y</code>.</li><li>Greater than zero if <code class="paramref">x</code> is greater
than <code class="paramref">y</code>.</li></ul>

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.