Change the default sorting of the list of Hybrid App
packages.
By default, the Hybrid Web Container displays
Hybrid App package names in alphabetical order. This example
changes the list to sort case-sensitively
- Add a HybridWebAppComparer class that uses the base class
IComparer<HybridWebAppInfo>.
- Override the Compare method using:
public int Compare(HybridWebAppInfo x, HybridWebAppInfo y)
{
return string.Compare(x.DisplayName, y.DisplayName, false);
}
- Open the CustomizationHelper class in the
CustomCode folder.
- Override the HybridAppComparator method using:
public override IComparer<HybridWebAppInfo> HybridAppComparator
{
get { return new HybridWebAppComparer(); }
}
- Save the file.