public static bool operator <( RBFormat a, RBFormat b )
{
if ( (int)a.Format < (int)b.Format )
return true;
else if ( a.Format == b.Format )
{
if ( a.Width < b.Width )
{
return true;
}
else if ( a.Width == b.Width )
{
if ( a.Height < b.Height )
{
return true;
}
else if ( a.Height == b.Height )
{
if ( a.Samples < b.Samples )
return true;
}
}
}
return false;
}