Sitecore 5.1.1 API

MainUtil.GetSortKey Method (String, String)

Generates a unique sort key.

[Visual Basic]
Overloads Public Shared Function GetSortKey( _
   ByVal name As String, _
   ByVal sortorder As String _
) As String
[C#]
public static string GetSortKey(
   string name,
   string sortorder
);

Parameters

name
A sort key.
sortorder
A sort order key.

Return Value

A padded sort key.

Remarks

The sort order key of items needs to be padded in order to be sorted correctly. Furthermore items that start with double underscores "__" should come last. This function creates such a padded sort key.

See Also

MainUtil Class | Sitecore Namespace | MainUtil.GetSortKey Overload List