//
// GJBaseGameLayer::sortAllGroupsX from 0x1001f27e4 to 0x1001f284c (104 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::sortGroups @ 0x1001dfe70
// > LevelEditorLayer::recreateGroups @ 0x100361ecc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::sortAllGroupsX(GJBaseGameLayer *a1)
{
__int64 i; // x21
cocos2d::CCArray *v3; // x8
for ( i = 1; i != 10000; ++i )
{
v3 = a1->m_groups.__begin_[i];
if ( v3 )
qsort(v3->data->arr, v3->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_1001D9B84);
}
}