Skip to content

Commit

Permalink
fix(dfn): block attribute first (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Feb 3, 2025
1 parent c36f502 commit d543125
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modflow_devtools/dfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def _try_parse_bool(value: Any) -> Any:
def _var_attr_sort_key(item) -> int:
"""
Sort key for input variables. The order is:
-1. block
0. name
1. type
2. shape
Expand All @@ -63,6 +64,8 @@ def _var_attr_sort_key(item) -> int:
"""

k, _ = item
if k == "block":
return -1
if k == "name":
return 0
if k == "type":
Expand Down

0 comments on commit d543125

Please sign in to comment.