Some replaced instances also fix a bug where the comparison function should have returned `0` as opposed to `1` or `-1` as used in ternaries. This results in a performance improvement. Developed in https://github.com/WordPress/wordpress-develop/pull/10717 Props soean, mukesh27, westonruter. Fixes #64497. Built from https://develop.svn.wordpress.org/trunk@61474 git-svn-id: http://core.svn.wordpress.org/trunk@60786 1a063a9b-81f0-0310-95a4-ce76da25c4cd