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

According to international trade data reported by the U.S. Census Bureau, the U.S. economy appears to have unexpectedly slowed after having shown signs of slow but steady improvement in recent months.

That reversal can be seen in the following chart, in which we've tracked the year over year growth rate of the exchange rate adjusted value of goods and services between the U.S. and China from January 1986 through September 2016, the most recent month for which data is available at this writing.

The growth rate gives us an indication of the relative health of each nation's economy. A simple reading of whether the growth rate is positive or negative tells us if the value of goods and services imported by the world's largest trading partners can tell us whether the receiving nation's economy is growing or if it is experiencing recessionary conditions. Meanwhile, the trends in the growth rate over time can tell us whether the importing nation's economy is strengthening (rising trend) or weakening (falling trend).

In the chart above, we can see that China's economy is experiencing both positive economic growth and is benefitting from a rising trend, which has largely been in place since December 2015.

Chinese imports to the U.S. economy is telling a different story. After having fallen during much of 2015, the year over year growth rate of China's exports to the U.S. bottomed in negative territory in early 2016 before beginning a slow trend of improvement, which lasted through August 2016.

And then, in September 2016, that appears to have suddenly reversed.

Although just one data point, what makes that single observation such a concern is that the value of goods and services that the United States imports from China follows an annual cycle, which typically peaks in either September or October of each year, which corresponds to the shipment of goods that will support the annual Christmas holiday shopping season. The following chart shows just the value of U.S. imports from China from January 1985 through September 2016.

For the U.S. economy, the key thing to recognize is that this recessionary indication developed in 2015 and despite showing some signs of recovery in 2016, it worsened in the months immediately preceding the U.S. election. If that development continued in October 2016, which we'll find out when that data is released next month, it is possible that the apparent sudden slowing U.S. economy in the months before the election could have tipped the election scales in Donald Trump's favor, as Hillary Clinton failed to either recognize or address the nation's developing economic issues during the campaign's final months.

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.