Use menu name or type name as tie breaker.

This commit is contained in:
yellowisher 2022-08-25 00:00:59 +09:00
parent 367bf2065c
commit 04920fadb7

View File

@ -32,6 +32,11 @@ namespace MackySoft.SerializeReferenceExtensions.Editor {
return -999;
}
return GetAttribute(type)?.Order ?? 0;
}).ThenBy(type => {
if (type == null) {
return null;
}
return GetAttribute(type)?.MenuName ?? type.Name;
});
}