Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

FileSystemItemCollection.Sort Method

Namespace: Rebex.IO
Assembly: Rebex.Common.dll (version 7.0.9147)

Sort()

Sorts the items in the entire collection alphabetically.

Declaration
public void Sort()

Sort(IComparer)

Sorts the elements in the entire collection using the specified comparer.

Declaration
public void Sort(IComparer comparer)
Parameters
Type Name Description
IComparer comparer

The IComparer implementation to use when comparing elements, or a null reference to sort alphabetically.

Sort(Int32, Int32, IComparer)

Sorts the elements in a section of the collection using the specified comparer.

Declaration
public void Sort(int index, int count, IComparer comparer)
Parameters
Type Name Description
Int32 index

The zero-based starting index of the range to sort.

Int32 count

The length of the range to sort.

IComparer comparer

The IComparer implementation to use when comparing elements, or a null reference to sort alphabetically.

In This Article
  • Sort()
  • Sort(IComparer)
  • Sort(Int32, Int32, IComparer)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies