diff --git a/sortt.js b/sortt.js index 3fad9fa..2b161e7 100644 --- a/sortt.js +++ b/sortt.js @@ -8,17 +8,15 @@ */ -//creat global function with main routine +//create global function with main routine window.sortt=function(normsort,revsort,isdefault){ //sortTable [normsort] (revsort) (isdefault) //normsort is needet - if (typeof normsort === 'undefined') return false; + if (normsort) return false; //default values of optinal parameters - if (typeof revsort === 'undefined') revsort = ""; - if (typeof isdefault === 'undefined') isdefault = false; - if (!(typeof isdefault === 'boolean')) isdefault = false; + if (revsort) revsort = ""; // parse URL /* script check if url has already a sort=