Skip to content

Commit

Permalink
fix sort
Browse files Browse the repository at this point in the history
  • Loading branch information
HadeanLake committed Sep 2, 2024
1 parent 9c09701 commit 3dfd0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,7 @@ int known_magic::select_spell( Character &guy )
return inv_chars.ordinal( l_invlet ) < inv_chars.ordinal( r_invlet );
}
// 3. By spell name
return strcmp( left->name().c_str(), right->name().c_str() );
return strcmp( left->name().c_str(), right->name().c_str() ) < 0;
} );

uilist spell_menu;
Expand Down

0 comments on commit 3dfd0fd

Please sign in to comment.