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

Deck dump sort entities by name before id #327

Closed
mmorel-35 opened this issue Apr 16, 2021 · 1 comment
Closed

Deck dump sort entities by name before id #327

mmorel-35 opened this issue Apr 16, 2021 · 1 comment

Comments

@mmorel-35
Copy link
Contributor

mmorel-35 commented Apr 16, 2021

Quite some time I need to compare two deck files. When it's dumped the id() function is used to sort the entities, in this function the id (an uuid) is used before the name so the order of the entities is unpredictable between two instances.

Would it be possible to modify the id() of the identities to return the name first and then the id as a fallback ?

@hbagdi
Copy link
Member

hbagdi commented Apr 22, 2021

Makes sense. Will happily accept a patch for this.

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

No branches or pull requests

2 participants