wp-includes/class-wp-customize-manager.php:4426Helper function to compare two objects by priority, ensuring sort stability via instance_number.
$aWP_Customize_Panel|WP_Customize_Section|WP_Customize_Control$bWP_Customize_Panel|WP_Customize_Section|WP_Customize_Controlint protected function _cmp_priority( $a, $b ) { _deprecated_function( __METHOD__, '4.7.0', 'wp_list_sort' ); if ( $a->priority === $b->priority ) { return $a->instance_number - $b->instance_number; } else { return $a->priority - $b->priority; } }Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-customize-manager.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.