osu.Framework/Graphics/Containers/CompositeDrawable.cs
/// <summary>
/// Compares two <see cref="InternalChildren"/> to determine their sorting.
/// </summary>
/// <param name="x">The first child to compare.</param>
/// <param name="y">The second child to compare.</param>
/// <returns>-1 if <paramref name="x"/> comes before <paramref name="y"/>, and 1 otherwise.</returns>
Compares two  to determine their sorting.
Compares two to determine their sorting .
protected virtual int Compare(Drawable x, Drawable y)
        {
            if (x == null) throw new ArgumentNullException(nameof(x));
            if (y == null) throw new ArgumentNullException(nameof(y));
            int i = y.Depth.CompareTo(x.Depth);
            if (i != 0) return i;
            return x.ChildID.CompareTo(y.ChildID);
        }
protected virtual int Compare ( Drawable x , Drawable y ) { if ( x == null ) throw new ArgumentNullException ( nameof ( x ) ) ; if ( y == null ) throw new ArgumentNullException ( nameof ( y ) ) ; int i = y . Depth . CompareTo ( x . Depth ) ; if ( i != 0 ) return i ; return x . ChildID . CompareTo ( y . ChildID ) ; }
Compares two  to determine their sorting.
Compares two to determine their sorting .
1 if  comes before , and 1 otherwise.
1 if comes before and 1 otherwise .
x
Drawable
The first child to compare.
The first child to compare .
y
Drawable
The second child to compare.
The second child to compare .