If you're wondering, "tmh_" is "The Matt Harris," who contributed most of the post sorting functionality. "fc_" is "Focal Curve", that's me. Feel free to namespace this function after yourself, or just moz_ or mozhacks_ or whatever, but you're not obliged to use the tmh_ prefix (though it does no harm either).