Skip to content

Explicitly document BackToFront and FrontToBack use an unstable sort.#7323

Merged
Jjagg merged 1 commit intoMonoGame:developfrom
goosenoises:develop
Aug 20, 2020
Merged

Explicitly document BackToFront and FrontToBack use an unstable sort.#7323
Jjagg merged 1 commit intoMonoGame:developfrom
goosenoises:develop

Conversation

@goosenoises
Copy link
Copy Markdown

#3856

If two sprites have the same depth, their draw order isn't guaranteed to be preserved when sorting with SpriteSortMode.BackToFront or SpriteSortMode.FrontToBack. Using a stable sort is expensive, but as @Jjagg mentioned, wanted to document this for easier reference.

(Side note that I'm relatively new to contributing to OSS, please let me know if I'm missing anything.)

@Jjagg
Copy link
Copy Markdown
Contributor

Jjagg commented Aug 20, 2020

Thank you! :)

@Jjagg Jjagg merged commit d36aa52 into MonoGame:develop Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants