.docxpressoPlugin { font-size: 83.35%; } .h5p_layout { box-sizing: content-box !important; } .h5p_layout *{ float: none; text-align: initial; box-sizing: border-box; } /*to make sure that floating elements are always inside the document bounds*/ .h5p_layout:after { content: " "; display: block; height: 0; clear: both; visibility: hidden; } /* a default layout for documents without maste styles */ .h5p_default_layout { margin-top: 3.6rem; margin-left: 8.50464rem; margin-bottom: 3.6rem; margin-right: 8.50464rem; writing-mode: lr-tb; } /*hack for IE */ wbr:after { content: "\00200B"; } /*hack to get some extra top margin for anchors if needed*/ .h5p_layout span[id^="_Toc"]{ padding-top: 10px; margin-top: -10px; } /* Remove unwanted numbering styles */ .h5p_layout .removeNumbering:before{ content: initial !important; display: none; all: initial !important; } /* give zero default top and bottom paddings for paragraphs*/ .h5p_layout p { color: #000000; line-height: 1; margin-top: 0; margin-bottom: 0; } .h5p_layout span { color: #000000; font-weight: normal; } .h5p_layout span.dropcap { color: inherit; font-family: inherit !important; } .h5p_layout h1, .h5p_layout h2, .h5p_layout h3, .h5p_layout h4, .h5p_layout h5, .h5p_layout h6 { margin-top: 0; margin-bottom: 0; font-family: inherit; font-weight: 500; line-height: 1; color: inherit; } /* give zero default top and bottom paddings for paragraphs in tables*/ .h5p_layout table p { margin-top: 0; margin-bottom: 0; } .h5p_layout ul, .h5p_layout ol { list-style-type: none; margin-top: 0; margin-bottom: 0.5em; padding-left: 0; } .h5p_layout ul li, .h5p_layout ol li { list-style-type: none; margin-top: 0; margin-bottom: 0.5em; } .h5p_layout li p { margin-top: 0; margin-bottom: 0; } .h5p_layout table { border: none; } .h5p_layout td { vertical-align: top; border: none; } .h5p_layout th { vertical-align: top; border: none; } .h5p_layout div { margin-bottom: 10pt; } .h5p_layout img { margin: 0; padding: 0; } .h5p_layout ul ul { margin-top: 0; margin-bottom: 0; } .h5p_layout li { margin-top: 0; margin-bottom: 0; list-style-type: none !important; } .h5p_layout ul, .h5p_layout ol { list-style-type: none !important; } .h5p_layout td[data-sorting] p:before, .h5p_layout th[data-sorting] p:before { content: ' '; padding-right: 16px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALAQMAAACTYuVlAAAAA3NCSVQICAjb4U/gAAAABlBMVEUjLTD////tm/tRAAAACXBIWXMAAAsSAAALEgHS3X78AAAAFnRFWHRDcmVhdGlvbiBUaW1lADAyLzEwLzE2RFpLjQAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAAAI0lEQVR4nGP4/4Dh9wOGjw8YHjxgOJDA8B9MPgCLAMX/PwAANZUStiyS6NsAAAAASUVORK5CYII=); background-position: left center; background-repeat: no-repeat; } .sortDecorator { border-bottom: 3px solid #b70000 !important; } /* This is a spacial class designed to remove unwanted bullets when a li has ul as its first child*/ .h5p_layout .removeBullet:before { content: none !important; } /*responsive tables*/ .h5p_layout div.dxoResponsiveTable{ margin: 0 !important; padding: 0 !important; overflow-x: auto !important; overflow-y: hidden; } /* chart tooltips */ .c3-tooltip-container td.name { white-space: nowrap; } /* External services*/ .h5p_layout iframe { resize: vertical; border: 1px solid #fff; } .h5p_layout div.youtube { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; background-color: transparent; } .h5p_layout div.youtube iframe { resize: none; position:absolute; top:0; left:0; width:100%; height:100%; } div#h5p_6a7bf4a26df62 ul.LFO1 {counter-reset: ulLFO1_1;margin-left: 0;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 ul {counter-reset: ulLFO1_2;margin-left: -0.5in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li {margin-left: 0.5in;text-indent: -0.25in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li:before {counter-increment: ulLFO1_1;content: counter(ulLFO1_1, decimal) ". ";margin-left: -0.25in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul {counter-reset: ulLFO1_3;margin-left: -1in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li {margin-left: 1in;text-indent: -0.25in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li:before {counter-increment: ulLFO1_2;content: counter(ulLFO1_2, lower-latin) ". ";margin-left: -0.25in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul ul {counter-reset: ulLFO1_4;margin-left: -1.5in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li {margin-left: 1.5in;text-indent: -0.125in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li:before {counter-increment: ulLFO1_3;content: counter(ulLFO1_3, lower-roman) ". ";margin-left: -0.125in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul ul ul {counter-reset: ulLFO1_5;margin-left: -2in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li {margin-left: 2in;text-indent: -0.25in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li:before {counter-increment: ulLFO1_4;content: counter(ulLFO1_4, decimal) ". ";margin-left: -0.25in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul ul ul ul {counter-reset: ulLFO1_6;margin-left: -2.5in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li {margin-left: 2.5in;text-indent: -0.25in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li:before {counter-increment: ulLFO1_5;content: counter(ulLFO1_5, lower-latin) ". ";margin-left: -0.25in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul ul ul ul ul {counter-reset: ulLFO1_7;margin-left: -3in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li {margin-left: 3in;text-indent: -0.125in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li:before {counter-increment: ulLFO1_6;content: counter(ulLFO1_6, lower-roman) ". ";margin-left: -0.125in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul ul ul ul ul ul {counter-reset: ulLFO1_8;margin-left: -3.5in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li ul li {margin-left: 3.5in;text-indent: -0.25in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li ul li:before {counter-increment: ulLFO1_7;content: counter(ulLFO1_7, decimal) ". ";margin-left: -0.25in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul ul ul ul ul ul ul {counter-reset: ulLFO1_9;margin-left: -4in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li ul li ul li {margin-left: 4in;text-indent: -0.25in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li ul li ul li:before {counter-increment: ulLFO1_8;content: counter(ulLFO1_8, lower-latin) ". ";margin-left: -0.25in;display: table-cell;} div#h5p_6a7bf4a26df62 ul.LFO1 ul ul ul ul ul ul ul ul ul {counter-reset: ulLFO1_10;margin-left: -4.5in;padding: 0; list-style-type: none;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li ul li ul li ul li {margin-left: 4.5in;text-indent: -0.125in;font-size: 11pt;} div#h5p_6a7bf4a26df62 ul.LFO1 li ul li ul li ul li ul li ul li ul li ul li ul li:before {counter-increment: ulLFO1_9;content: counter(ulLFO1_9, lower-roman) ". ";margin-left: -0.125in;display: table-cell;} div#h5p_6a7bf4a26df62 p.P1 {break-before: page !important;text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 span.T2 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T3 {font-family: Times New Roman !important;vertical-align: super; font-size: 66.6% !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T4 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T5 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T6 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T7 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T8 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T9 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T10 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T11 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T12 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T13 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 p.P14 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 span.T15 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T16 {font-family: Times New Roman !important;font-weight: bold !important;font-style: italic !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T17 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 p.P18 {margin-left: 0.5in !important;text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P18 span {hyphenate: false;hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P19 {margin-left: 0.5in !important;text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P19 span {hyphenate: false;hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P20 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 span.T21 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T22 {font-family: Times New Roman !important;font-weight: bold !important;font-style: italic !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T23 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T24 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T25 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T26 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T27 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T28 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T29 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T30 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T31 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T32 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T33 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T34 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T35 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T36 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 p.P37 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P37 span {hyphenate: false;font-family: Times New Roman;font-weight: bold;font-style: italic;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P38 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 span.T39 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T40 {font-family: Times New Roman !important;vertical-align: super; font-size: 66.6% !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 span.T41 {font-family: Times New Roman !important;font-size: 12pt !important;language: en !important;country: US !important;} div#h5p_6a7bf4a26df62 p.P42 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P42 span {hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P43 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P43 span {hyphenate: false;font-family: Times New Roman;font-weight: bold;font-style: italic;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P44 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P44 span {hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P45 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P45 span {hyphenate: false;font-family: Times New Roman;font-weight: bold;font-style: italic;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P46 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P46 span {hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P47 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P47 span {hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P48 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P48 span {hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.P49 {text-align: justify !important;line-height: 1.5 !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P49 span {hyphenate: false;font-family: Times New Roman;font-size: 12pt;language: en;country: US;} div#h5p_6a7bf4a26df62 p.Normal {font-size: 11pt;} div#h5p_6a7bf4a26df62 p.Normal span {hyphenate: false;font-size: 11pt;} div#h5p_6a7bf4a26df62 span.DefaultParagraphFont {font-size: 11pt;} div#h5p_6a7bf4a26df62 p.ListParagraph {margin-left: 0.5in !important;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.ListParagraph span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6a7bf4a26df62 div {font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P1 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P14 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P20 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6a7bf4a26df62 p.P38 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6a7bf4a26df62 table {margin-left: 0in;border-collapse: collapse;writing-mode: lr-tb;font-size: 11pt;} div#h5p_6a7bf4a26df62 table tr {height: 0in;keep-together: auto;font-size: 11pt;} div#h5p_6a7bf4a26df62 table td, table th {background-color: transparent;vertical-align: top;wrap-option: wrap;font-size: 11pt;} div#h5p_6a7bf4a26df62 p {keep-with-next: auto;keep-together: auto;widows: 2;orphans: 2;break-before: auto;border: none;text-align: left;writing-mode: lr-tb;margin-bottom: 0.1111in;line-height: 1.07;background-color: transparent;font-size: 11pt;} div#h5p_6a7bf4a26df62 p span {font-family: Calibri;font-weight: normal;font-style: normal;text-transform: none;font-variant: normal;letter-spacing: normal;font-size: 11pt;background-color: transparent;text-decoration: none;text-decoration-color: font-color;language: en;country: IN;hyphenate: true;}
In the U S Constitution, due process was added by 8th amendment and on similar lines, in India also, at the time of framing of Constitution, it was proposed to add the due process but due to the experience in US Constitution, the framers of Indian Constitution rejected that proposal and did not add due process clause to Indian Constitution. Instead, in Article 21 the phrase ‘procedure established by law’ was added and word ‘personal’ was added before liberty. In the American Constitution, due to the word ‘due process’, the US Supreme Court had acquired immense power to itself and it was making excessive interference in executive and legislative action of the States. Several welfare related laws have been set aside by Supreme Court due to phrase ‘due process’ and also the liberty of people to freely enter into contractual relations in a free market was curtailed to a great extent by US Supreme Court. In India, the framers wanted to avoid such consequence and therefore they did not add the word ‘due process’.In the case of Rustom Cawasjee v Union of India (1970) (SC), two major aspects were emphasized:Various Fundamental Rights are not mutually exclusive. Therefore Article 14 has to be read with Article 21 and if any violation of Article 14 is alleged, then Article 21 also shall be examined.\The words ‘Procedure established by law’ is no more just a formalistic requirement, rather now the focus should be on quality of procedure. The procedure now has to be fair, just and reasonable. Thereafter the above development was finally finalized in Maneka Gandhi v Union of India (1978) (SC). It was a 7 Judges bench and the judgement was delivered by Justice P N Bhagwati. It was held that procedure of deprivation of life and personal liberty of an individual has to be reasonable, just, fair and non-arbitrary procedure and also that Fundamental rights are not mutually exclusive. With the above judgements, the due process clause which was otherwise rejected in Indian Constitution, was brought into Indian Constitution by Judicial interpretation. ‘Due Process’ for Indian Constitution would mean procedural fairness and non-arbitrariness. This is the same meaning as due process has.Sunil Batra v Delhi Admn (1978) (SC)“True, our Constitution does not have any due process clause on 8th amendment of American Constitution but with the R C Cooper and Maneka Gandhi judgements, the consequences are the same.” It is the Solitary Confinement case.In Maneka Gandhi judgement, therefore essentially it was procedural protection which was guaranteed in the sense that there has to be reasonable, fair, just and non-arbitrary procedure. So basically, it was procedural fairness in Maneka Gandhi but with subsequent interpretational changes towards Constitution, we extended the procedural fairness to substantive fairness and it is not only that procedure has to be reasonable, just, fair and non-arbitrary, rather now he substantive law also has to be reasonable, just, fair and non-arbitrary.Mithu v. State of Punjab (1983) (SC)It was held in this case that S. 303 of IPC is unreasonable, unjust and unfair and hence it is unconstitutional.Justice K S Puttaswami (Retd.) v. Union of India (2017) (SC)It was held in this case that quality of reasonableness do not attach only to the procedure established by law rather also to thr content of the law itself i.e. also to the substantive law itself. It overruled ADM Jabalpur case (function( $ ) {
//footnotes
$('.defaultNote').children(":first").css('cursor', 'pointer');
$('.defaultNote').children(":first").click(function(){
var gotoID = '#' + $(this).parent().attr('id');
$('html, body').animate(
{
scrollTop: $('a[href="' + gotoID + '"]').offset().top - 60,
},
250,
'linear'
)
});
}(jQuery));
var numFormat = ",.";
(function( $ ) {
"use strict";
//do some cleaning on load
var sortCells = $('td[data-sorting], th[data-sorting]');
sortCells.each(function(){
var first = $(this).text().trim().charAt(0);
if (first == '@'){
var oldHTML = $(this).html();
var newHTML = oldHTML.replace('@', '');
$(this).html(newHTML);
}
});
function sortingTable(node, pos, ordBy){
var rows = node.children('tbody').children('tr').get();
rows.sort(function(a, b) {
var X = $(a).children('td').eq(pos).text().toUpperCase();
var Y = $(b).children('td').eq(pos).text().toUpperCase();
if (numFormat != '.,'){
//we are dealing with a different locale and we need to do some
//transformation in numbers
X = convert2number(X);
Y = convert2number(Y);
} else {
X = X.replace(/,/g, '').replace(/ /g, '');
Y = Y.replace(/,/g, '').replace(/ /g, '');
}
var currencies = ['$', '¥', '£', '€'];
var arrayLength = currencies.length;
var XX = X;
var YY = Y;
for (var i = 0; i < arrayLength; i++) {
XX = XX.replace(currencies[i], '');
YY = YY.replace(currencies[i], '');
}
if (!isNaN(XX) && !isNaN(YY)){
var floatXX = parseFloat(XX);
var floatYY = parseFloat(YY);
return -(floatYY-floatXX) * ordBy;
} else if (!isNaN(XX) && isNaN(YY)){
return -1 * ordBy;
} else if (isNaN(XX) && !isNaN(YY)){
return ordBy;
} else {
if(X < Y) {
return -1 * ordBy;
}
if(X > Y) {
return 1 * ordBy;
}
return 0;
}
});
$.each(rows, function(index, row) {
node.children('tbody').append(row);
});
}
function removeTableCellDecoration() {
$("td[data-sorting], th[data-sorting]").removeClass('sortDecorator');
}
//unbind the click event just in case we are loading more than one document
$("td[data-sorting], th[data-sorting]").off('click');
$("td[data-sorting], th[data-sorting]").click(function(){
removeTableCellDecoration();
$(this).addClass('sortDecorator');
//get desired ordering
var ordering = $(this).attr('data-sortOrdering');
if (ordering == 'ASC'){
var ordBy = -1;
$(this).attr('data-sortOrdering', 'DESC');
} else {
var ordBy = 1;
$(this).attr('data-sortOrdering', 'ASC');
}
var cellPosition = $(this).prevAll().length;
var table = $(this).parents('table:first');
sortingTable(table, cellPosition, ordBy);
});
function convert2number(str) {
str = str.trim();
if (str.match(/^\d+/)) {
//we have to take special care when the thousand separators are '.'
var result_0 = str.replace(/\./g, '_@_');
var result_1 = result_0.replace(window.numFormat[0], '.');
var result = result_1.replace(/_@_/g, '');
result .replace(/ /g, '');
return result;
} else {
return str;
}
}
}(jQuery));
Subscribe for updates
Join 10,000+ subscribers.
AP
Aparna Shukla
Contributing author
Have a doubt about this?Ask Doubts


