add separate sort order field to levels, so they can be reordered without changing the id and invalidating solutions
This commit is contained in:
parent
90bc93fa02
commit
e43a422708
6 changed files with 27 additions and 11 deletions
|
@ -236,7 +236,7 @@ fn get_levels() -> Vec<Level> {
|
|||
levels.push(level);
|
||||
}
|
||||
}
|
||||
levels.sort_by(|a, b| a.id().cmp(b.id()));
|
||||
levels.sort_by(|a, b| a.sort_order().cmp(&b.sort_order()));
|
||||
levels
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue