/Engine/Source/Editor/UnrealEd/Public/EditorModeRegistry.h
Get a list of information for all currently registered modes, sorted by UI priority order
[TArray](API\Runtime\Core\Containers\TArray)< [FEditorModeInfo](API\Editor\EditorFramework\Tools\FEditorModeInfo) > GetSortedModeInfo() const