(svn r20009) -Fix [FS#3893]: sign sorting was unstable

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 14 years ago
parent e2445aca4a
commit 9582da99c0

@ -65,7 +65,9 @@ struct SignList {
GetString(buf_cache, STR_SIGN_NAME, lastof(buf_cache));
}
return strcasecmp(buf, buf_cache);
int r = strcasecmp(buf, buf_cache);
return r != 0 ? r : ((*a)->index - (*b)->index);
}
void SortSignsList()

Loading…
Cancel
Save