Table of Contents

Interface ISunamoComparer<T>

Namespace
SunamoCompare
Assembly
SunamoCompare.dll

Defines comparison operations for sorting elements in ascending or descending order.

public interface ISunamoComparer<T>

Type Parameters

T

The type of objects to compare.

Extension Methods

Methods

Asc(T, T)

Compares two values for ascending order sorting.

int Asc(T firstValue, T secondValue)

Parameters

firstValue T

The first value to compare.

secondValue T

The second value to compare.

Returns

int

A negative number if firstValue should come before secondValue in ascending order, zero if they are equal, or a positive number if firstValue should come after secondValue.

Desc(T, T)

Compares two values for descending order sorting.

int Desc(T firstValue, T secondValue)

Parameters

firstValue T

The first value to compare.

secondValue T

The second value to compare.

Returns

int

A negative number if firstValue should come after secondValue in descending order, zero if they are equal, or a positive number if firstValue should come before secondValue.