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:

  • Less than zero if x is less than y.
  • Zero if x is equal to y.
  • Greater than zero if x is greater than y.

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.