I have a collection of Layers where they have names and colors. What I want to do is to sort these first based on colors, then based on their names:
Layers
using System.Linq, do:
from layer in layers orderby layer.Color, layer.Name select layer