Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sorting option to get_variables function #1219

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

bowenszhu
Copy link
Member

The existing get_variables function does not guarantee the order of the returned variables. This can be inconvenient in cases where ordering is desired.

This PR introduces a new keyword argument sort to the get_variables function. By default, sort is set to false, preserving the previous behavior. Setting sort = true will result in the returned variables being sorted.

@bowenszhu bowenszhu linked an issue Aug 14, 2024 that may be closed by this pull request
@ChrisRackauckas ChrisRackauckas merged commit 1a5be42 into master Aug 16, 2024
10 of 12 checks passed
@ChrisRackauckas ChrisRackauckas deleted the 1182-get_variables-order branch August 16, 2024 15:54
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.

get_variables order
2 participants