//
// GJBaseGameLayer::sortAllGroupsX from 0x471050 to 0x47107c (44 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::recreateGroups @ 0x36e87e
// > GJBaseGameLayer::sortGroups @ 0x489d6c
//
// 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 GJBaseGameLayer::sortAllGroupsX(GJBaseGameLayer *a1)
{
int i; // r4
cocos2d::CCArray *v3; // r3
for ( i = 1; i != 10000; ++i )
{
v3 = a1->m_groups.m_start[i];
if ( v3 )
qsort(v3->data->arr, v3->data->num, 4u, (int (*)(const void *, const void *))xCompPosition);
}
}