// MIT License - Copyright (c) 2025 wallstop // Full license text: https://github.com/wallstop/unity-helpers/blob/main/LICENSE namespace WallstopStudios.UnityHelpers.Utils { using System; using System.Collections.Generic; public sealed class TypeNameSorter : IComparer { public static readonly TypeNameSorter Instance = new(); private TypeNameSorter() { } public int Compare(Type x, Type y) { return string.Compare(x?.Name, y?.Name, StringComparison.OrdinalIgnoreCase); } } }