//
// GJBaseGameLayer::sortAllGroupsX from 0x85d800 to 0x85d864 (100 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::recreateGroups @ 0x660af0
// > GJBaseGameLayer::sortGroups @ 0x8835b0
// > ??> @ 0x706e0
//
// 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)
{
__int64 i; // x19
cocos2d::CCArray *v3; // x0
for ( i = 1; i != 10000; ++i )
{
v3 = a1->m_groups.m_start[i];
if ( v3 )
qsort(v3->data->arr, v3->data->num, 8u, (int (*)(const void *, const void *))xCompPosition);
}
}