Skip to content

Conversation

JProgrammer
Copy link
Contributor

A dotnet list uses unstable quick sort for sorting. This results in the Toml being output in an unordered fasion.

This change will perserve order of props especially for TomlTable.

@xoofx xoofx added the enhancement New feature or request label Jun 21, 2022
@xoofx xoofx merged commit dba86c1 into xoofx:main Jun 21, 2022
@xoofx
Copy link
Owner

xoofx commented Jun 21, 2022

Thanks! A bit unfortunate that the only stable sort requires using Linq but we don't much other options likely...

@JProgrammer
Copy link
Contributor Author

Yes quite unfortunate and subtle that the length of the dictonary will change the behviour of quicksort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants