Skip to content

Commit

Permalink
Make item grid consistent with a secondary id sort
Browse files Browse the repository at this point in the history
  • Loading branch information
haihala committed Jun 28, 2024
1 parent ba15ec8 commit fdbac32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/src/ui/shop/setup_shop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ fn fill_item_grid(
) -> Vec<Entity> {
let mut pairs = character.items.iter().collect::<Vec<_>>();

pairs.sort_by_key(|(id, _)| recursive_cost(character, **id));
pairs.sort_by_key(|(id, _)| (recursive_cost(character, **id), **id));

pairs
.into_iter()
Expand Down

0 comments on commit fdbac32

Please sign in to comment.