rsek / datasworn

The successor to the original Datasworn repository and Dataforged package, which provide game rules from the Ironsworn and Ironsworn: Starforged TTRPGs in JSON.
https://ko-fi.com/r_sek
120 stars 26 forks source link

Compute an `_order` integer value so that dictionary objects have a readily-accessible sort order #47

Open rsek opened 2 weeks ago

rsek commented 2 weeks ago

Maps/Dictionaries aren't usually ordered, so Datasworn's ordering may be lost. Assigning a sort value to each object could instead be done at build time.

One possible fringe benefit: using the same order sequence across contents and collections -- especially relevant for oracles