to your HTML
Add class="sortable" to any table you'd like to make sortable
Click on the headers to sort
Thanks to many, many people for contributions and suggestions.
Licenced as X11: http://www.kryogenix.org/code/browser/licence.html
This basically means: do what you want with it.
*/
var stIsIE = /*@cc_on!@*/false;
sorttable = {
init: function() {
// quit if this function has already been called
if (arguments.callee.done) return;
// flag this function so we don't do the same thing twice
arguments.callee.done = true;
// kill the timer
if (_timer) clearInterval(_timer);
if (!document.createElement || !document.getElementsByTagName) return;
sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/;
forEach(document.getElementsByTagName('table'), function(table) {
if (table.className.search(/\bsortable\b/) != -1) {
sorttable.makeSortable(table);
}
});
},
makeSortable: function(table) {
if (table.getElementsByTagName('thead').length == 0) {
// table doesn't have a tHead. Since it should have, create one and
// put the first table row in it.
the = document.createElement('thead');
the.appendChild(table.rows[0]);
table.insertBefore(the,table.firstChild);
}
// Safari doesn't support table.tHead, sigh
if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0];
if (table.tHead.rows.length != 1) return; // can't cope with two header rows
// Sorttable v1 put rows with a class of "sortbottom" at the bottom (as
// "total" rows, for example). This is B&R, since what you're supposed
// to do is put them in a tfoot. So, if there are sortbottom rows,
// for backwards compatibility, move them to tfoot (creating it if needed).
sortbottomrows = [];
for (var i=0; i

Just for fun, we thought we'd make Mark Perry's head explode this morning.

Frequent readers of Carpe Diem know that Mark has often spotlighted statistics related to what he calls the "Man-Cession," which reveal the extent to which menhavebeennegativelyaffected by the current recession as compared to how women have fared. Along the way, he's also remarked upon research from the UK that providesevidence that the principal reason men tend to earn higher incomes than women is related to lifestyle choices, such as marriage and motherhood, rather than the biases of employers. Findings that are backed by U.S. studies.

Until now, anyway! The latest wrinkle in the gender gap in income story comes as researchers from the University of Wisconsin-Milwaukee add race into the issue and find that employers aren't the culprits behind the pay disparity that appears to favor white men over both minorities and women. Instead, it's their customers!

Researchers have helped solve the mystery of why white men continue to earn 25 percent more than equally well-performing women and minorities. Managers and business owners must pay a premium for white male employees because customers prefer them, says David Hekman, assistant professor in the Sheldon B. Lubar School of Business at the University of Wisconsin-Milwaukee (UWM).

Here's how Hekman and his co-researchers did their study:

Hekman and colleagues at four other North American business schools showed customers a video featuring either a black male, a white female, or a white male actor playing the role of an employee helping a customer. Those viewing the white male not only reported being 19 percent more satisfied with the employee's performance, but also they were more satisfied with the store's cleanliness and appearance. This despite the fact that employees demonstrated the same scripted behaviors and the store background, camera angles and lighting were identical.

These findings were also borne out through more than 10,000 medical patients' ratings of their doctors. Patients who received e-mail from their doctor were more satisfied with their doctor's competence and approachability, but only if the doctor was a white man.

That's certainly a lot of things to have to control for to run a valid experiment. We're sure they controlled for everything, including things like all those non-verbal elements of communication between all these interacting parties, any past interactions or established relationships between physicians and patients, not to mention any racial, gender or personal biases of the actors as they interacted with the customers in those recorded videos. But, good science is small potatoes when there's politics to talk about! Hekman and crew weigh in on the Paycheck Fairness Act now making its way through Congress, where they warn of potential unintended consequences:

The findings also reveal some potentially devastating, unintended consequences of the Paycheck Fairness Act (H.R. 12 and S. 182), introduced in 2009 to narrow the wage gap and now awaiting action by the U.S. Senate. "Because customers prefer white men employees, even when women and minorities perform equally well, there is a real danger that increasing women's wages so that they are equal to those of white men may cause managers to hire fewer women," Hekman explains.

But wait, there's more! Hekman says the legislation could be more effective if it focused on the real problem: customer satisfaction surveys!

The researchers say the act could be more effective if it also addressed ways to reduce the linkage between biased customer opinions and employee pay because more than 60 percent of employees have at least some of their pay directly linked to customer satisfaction survey results.

Wow! This customer satisfaction thing is a real problem. How might it be fixed?

Hekman and colleagues offered straightforward policy suggestions in the Academy of Management Journal. Among them: make sure customer satisfaction surveys target specific employee behaviors. For example, don't ask customers if they would recommend a physician; ask them how many times the doctor asked a patient if she had additional questions or understood key medical terms.

Who knew that we could eliminate apparent racial and gender pay disparities by legally mandating that employees and physicians run through checklists of questions rather than personally engaging with their customers or patients? Customer satisfaction can only be improved! The only thing left would be to fix the customers' racist and sexist biases. But, how?

No more anonymous customer feedback surveys, either, urge the researchers. These can significantly affect the pay scale in many industries.

"Make sure customers are identifiable and therefore at least somewhat accountable when they provide ratings," says Hekman. "People may do all sorts of bad things when they are anonymous - just check out the reader postings on any blog."

Indeed. Anonymous comments are never valid nor honest. Just check out how people vote in secret ballot elections....

Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:

Materials on this website are published by Political Calculations to provide visitors with free information and insights regarding the incentives created by the laws and policies described. However, this website is not designed for the purpose of providing legal, medical or financial advice to individuals. Visitors should not rely upon information on this website as a substitute for personal legal, medical or financial advice. While we make every effort to provide accurate website information, laws can change and inaccuracies happen despite our best efforts. If you have an individual problem, you should seek advice from a licensed professional in your state, i.e., by a competent authority with specialized knowledge who can apply it to the particular circumstances of your case.