-void _REGISTRY_SWAP(int i, int j, entity pass)
-{
- i += WEP_HARDCODED_IMPULSES + 1; j += WEP_HARDCODED_IMPULSES + 1;
- entity e = weapon_info[i];
- weapon_info[i] = weapon_info[j];
- weapon_info[j] = e;
-}
-
-float _REGISTRY_CMP(int i, int j, entity pass)
-{
- i += WEP_HARDCODED_IMPULSES + 1; j += WEP_HARDCODED_IMPULSES + 1;
- string a = weapon_info[i].netname;
- string b = weapon_info[j].netname;
- return strcasecmp(a, b);
-}
-