// Sort by the Content property
myItemsControl.Items.SortDescriptions.Add(new SortDescription("My Item", ListSortDirection.Ascending));