wizard command (&").
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5531 c06c8d41-db1a-0410-9941-cceddc491573
HZ7DYCFH4VUDNUBNP5Z2HSYJWJRIVUEQVYWG7NTCMYNZJQT7NIPQC
}
static bool _sort_monster_list(int a, int b)
{
if (a >= MAX_MONSTERS || b >= MAX_MONSTERS)
{
mprf("a = %d, b = %d", a, b);
}
const monsters* m1 = &menv[a];
const monsters* m2 = &menv[b];
if (m1->type == m2->type)
{
if (!m1->alive() || !m2->alive())
return false;
return ( m1->name(DESC_PLAIN, true) < m2->name(DESC_PLAIN, true) );
}
if (mons_char(m1->type) < mons_char(m2->type))
return true;
return (m1->type < m2->type);