//
// IDNameBrowserPopup::onToggleSort from 0x793428 to 0x793458 (48 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:59:43 +0000
//
void __fastcall IDNameBrowserPopup::onToggleSort(IDNameBrowserPopup *this, cocos2d::CCObject *a2)
{
ScrollableContentLayer *v3; // r0
*((_DWORD *)this + 140) = (*((_DWORD *)this + 140) + 1) % 3;
IDNameBrowserPopup::updateSortButtonLabel(this);
v3 = *((ScrollableContentLayer **)this + 135);
if ( v3 )
ScrollableContentLayer::scrollTo(v3, 0.0);
IDNameBrowserPopup::rebuildList(this);
}