1.3.1.3.1.3.  Edit class system > Sort classes

The function is executed immediately when Sort classes is activated and the sort arrows are activated. (The function was already available with V12.8, automatic activation was added with V12.9).