AlphaTab.Rendering.Utils.MasterBarBounds.Finish C# (CSharp) Method

Finish() public method

public Finish ( ) : void
return void
        public void Finish()
        {
            Bars.Sort((a,b)=>
            {
                if (a.RealBounds.Y < b.RealBounds.Y)
                {
                    return -1;
                }
                if (a.RealBounds.Y > b.RealBounds.Y)
                {
                    return 1;
                }
                if (a.RealBounds.X < b.RealBounds.X)
                {
                    return -1;
                }
                if (a.RealBounds.X > b.RealBounds.X)
                {
                    return 1;
                }
                return 0;
            });
        }