Extend Unity ObjectField / Array function/Gui interface

I like to extend the Unity Editor GUI to make a universal sort function for all Arrays available via Context menu.

Is there a way to extend the ObjectField class or the the class that is controlling the GUI for arrays?

Example:

X different Classes with Arras of different types.

I like to sort the input objects (like a image sequence or data files).
Implementing / copping the code for sorting in every time in a new custom editor class is not very efficent.

You can only write CustomEditors for classes that are derived from Component. Arrays are not, so you can’t write a generic inspector for them.

You could write an EditorWindow that uses reflection to look up any arrays in a target object. Once the arrays are located they can be modified. Sorting is something special, though, as it requires information on how a list of objects need to be sorted.