Skip to content

Add sorting toggle to gm-editor - #1648

Open
Bitlytic wants to merge 1 commit into
DFHack:masterfrom
Bitlytic:gm-editor-sort
Open

Bitlytic wants to merge 1 commit into
DFHack:masterfrom
Bitlytic:gm-editor-sort

Conversation

@Bitlytic

Copy link
Copy Markdown

Toggle sorting in gm-editor windows (default keybind is Shift + S)

This also takes into account when there are non-string keys and places numerical values at the bottom, sorting those between themselves.

String only example

Unsorted

image

Sorted

image

Strings and numbers

Unsorted

image

Sorted

image

@ab9rf

ab9rf commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

I will point out that the items in every thing displayed in gm-editor are already sorted - they're just sorted by their storage order, not by their tag. It's therefore incorrect to refer to the current display as "unsorted". C++ structures are not formless bags.

@Bitlytic

Copy link
Copy Markdown
Author

I will point out that the items in every thing displayed in gm-editor are already sorted - they're just sorted by their storage order, not by their tag. It's therefore incorrect to refer to the current display as "unsorted". C++ structures are not formless bags.

Ahh good point, perhaps "Alphabetical" or something similar would be more correct here

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