public static int CompareByName( Element _a, Element _b )
{
int ret = string.Compare( _a.texture.name, _b.texture.name );
if ( ret == 0 ) {
ret = string.Compare( exEditorHelper.AssetToGUID(_a.texture), exEditorHelper.AssetToGUID(_b.texture) );
}
if ( _a.isFontElement && _b.isFontElement && ret == 0 ) {
ret = _a.charInfo.id - _b.charInfo.id;
}
return ret;
}