.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; } .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-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_6629b4c260482 p.P1 {break-before: page !important;text-align: center !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P1 span {hyphenate: false;color: #365F91;font-size: 24pt;language: en;country: US;} div#h5p_6629b4c260482 p.P2 {text-align: center !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T3 {color: #365F91 !important;font-size: 36pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P4 {text-align: center !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P4 span {hyphenate: false;color: #404040;font-size: 16pt;language: en;country: US;} div#h5p_6629b4c260482 p.P5 {text-align: center !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P5 span {hyphenate: false;color: #404040;font-size: 16pt;language: en;country: US;} div#h5p_6629b4c260482 p.P6 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T7 {color: #404040 !important;font-size: 28pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T8 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T9 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P10 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T11 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T12 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T13 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P14 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P14 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P15 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P15 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P16 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T17 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T18 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T19 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P20 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T21 {font-size: 14pt !important;} div#h5p_6629b4c260482 span.T22 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T23 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T24 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T25 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P26 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T27 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T28 {font-size: 14pt !important;text-decoration: single !important;text-decoration: underline !important;text-decoration-style: solid !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T29 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P30 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T31 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T32 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T33 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T34 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T35 {font-style: italic !important;font-size: 14pt !important;text-decoration: single !important;text-decoration: underline !important;text-decoration-style: solid !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T36 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P37 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P37 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P38 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P38 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P39 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T40 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T41 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P42 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T43 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T44 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T45 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P46 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T47 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T48 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P49 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T50 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T51 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T52 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T53 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T54 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T55 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T56 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T57 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T58 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T59 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P60 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P60 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P61 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T62 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P63 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P63 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P64 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T65 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T66 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T67 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T68 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 span.T69 {font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P70 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P70 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P71 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 span.T72 {font-style: italic !important;font-size: 14pt !important;language: en !important;country: US !important;} div#h5p_6629b4c260482 p.P73 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P73 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P74 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P74 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P75 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P75 span {hyphenate: false;font-style: italic;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P76 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P76 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P77 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P77 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P78 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P78 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 p.P79 {text-align: justify !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.P79 span {hyphenate: false;font-size: 14pt;language: en;country: US;} div#h5p_6629b4c260482 div.a0 {border: none !important;background-color: transparent !important;float: left;float: left;font-size: 11pt;} div#h5p_6629b4c260482 p.Normal {font-size: 11pt;} div#h5p_6629b4c260482 p.Normal span {hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 span.Standardskriftforavsnitt {font-size: 11pt;} div#h5p_6629b4c260482 p.Bobletekst {margin-bottom: 0in !important;line-height: 1 !important;font-size: 11pt;} div#h5p_6629b4c260482 p.Bobletekst span {hyphenate: false;font-size: 8pt;hyphenate: false;} div#h5p_6629b4c260482 span.BobletekstTegn {font-size: 8pt !important;} div#h5p_6629b4c260482 div {font-size: 11pt;} div#h5p_6629b4c260482 div.Graphics {font-size: 11pt;} div#h5p_6629b4c260482 p.P2 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P6 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P10 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P16 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P20 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P26 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P30 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P39 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P42 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P46 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P49 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P61 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P64 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 p.P71 span {hyphenate: false;hyphenate: false;font-size: 11pt;} div#h5p_6629b4c260482 table {margin-left: 0in;border-collapse: collapse;writing-mode: lr-tb;font-size: 11pt;} div#h5p_6629b4c260482 table tr {height: 0in;keep-together: auto;font-size: 11pt;} div#h5p_6629b4c260482 table td, table th {background-color: transparent;vertical-align: top;wrap-option: wrap;font-size: 11pt;} div#h5p_6629b4c260482 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.1388in;line-height: 1.15;background-color: transparent;font-size: 11pt;} div#h5p_6629b4c260482 p span {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: nb;country: NO;hyphenate: true;}

For It Is by Free Grace That You are Saved,

THROUGH ​​ FAITH

By Jan Lilleby

 

 ​​​​ The known word​​ from Paul’s epistle to the Ephesians (2:8, 9) contains the most important exhorting suggestion we can imagine as Christians: We are saved by faith, and not by knowledge or our own efforts/performances.

If we think this through, we will discover that the Bible – the epistles in particular – are written to us​​ believers,​​ and not as if they were Tracts or Pamphlets aimed at the world.

It is written to God’s assembly and not to the world, it’s a fact.

The Bible is set up so that the unbeliever or non-Christian in the world can read what God says to us who believes. And not that the believer can read what God says to the world. But the Bible mentions the world out there, yes, but as lost people since they have no faith in Christ.

If we look at that part of Christianity which specialize on Apologetics, that of basing arguments for the faith upon knowledge and common sense combined with the Bible, it still is at risk to slip in that matter. One could easily end up giving the impression before non-believers that if we only know enough, and have stored up much knowledge in the Bible, -​​ then​​ we can think that we are saved.​​ 

Often we can hear sceptics say,​​ ‘..how can we know that the Bible is true and that this thing with God and Jesus is right?’ ​​ Is the Christian faith the only way to get saved? Why are there so many religions in the world, and yet – you are sure that only​​ the Christian faith is the​​ saving one?

Thus people saying this, shows us that they have missed the whole point: The Bible says clearly that we can only be saved​​ BY FAITH, and thus not by knowledge or human wisdom or science and research.

But they want to know​​ before​​ they will believe. That is not the way God wants it. First faith, then knowledge.​​ The point is not to know,​​ but to believe​​ – to trust God and lean confidently on Him.

Never in the Bible can we find any word from God telling us that if we only can gather a lot of knowledge, then we shall be saved.

Faith is on a higher level than knowledge (science) – that is for sure. Faith has to do with trusting God as I just wrote. You hold His word for entirely true and trustworthy, and you bet your life on it. You do not feel the need to get lots of knowledge before you can believe on Him. If you trust God, then knowledge and evidence is quite secondary.

God experienced the opposite of faith/trust as He saw Adam and Eve when they fell in that Arch Sin in Eden. They displayed that all of a sudden they no longer had that full trust and confidence in the Lord. They wanted to eat of the Tree of Knowledge (Gen. 2:9). They were tempted by the devil who said,​​ Has God really said…?.

They should have talked back and said,​​ Yes, God has said it, so we believe on Him and not on you!​​ We are not going to sin and eat of that tree.

Notice that the apostles did not go out and preached​​ the Word of Knowledge, - but the Word of Faith, and the Word of the Cross.

It is an entirely different matter​​ that we, as believers, can get knowledge in the Bible –​​ AFTER​​ we have come to faith in Jesus. Paul recommends it as a matter of fact, and​​ blaming those who do not go for Bible knowledge. But such knowledge​​ is​​ meant for us to be able to​​ grasp the glorious greatness of God’s salvation for us,​​ and absolutely not so we should become independent of God and fixing salvation all by ourselves. That was what Adam and Eve was tempted by – the devil wanted them to think that they could fix it on their own.

Eph. 1:17-19 cannot be misunderstood,

I pray that the God of our Lord Jesus Christ, the Father of glory, that He may grant you a spirit of wisdom and revelation in the KNOWLEDGE OF HIM. ​​ 18 By having the eyes of your heart flooded with light, so that you can KNOW AND UNDERSTAND the hope to which He has called you, and how rich in His glorious inheritance in the saints, 19 And what is the immeasurable and unlimited and surpassing greatness of His power in and for us who believe, as demonstrated in the working of His mighty strength.

Knowledge is here recommended for us who already are believers​​ -​​ and not knowledge so that we, as in​​ a ‘step-2’, can start believing.

If you are a seeker for Biblical truth – one who want to believe on Jesus – but you feel that you​​ ‘don’t quite manage to enter into it’​​ – what if you hereafter take the word of the Bible for true, and start believing first, and no longer try to get a lot of knowledge before you​​ dare​​ believe?

Think through this key-word of Paul, regarding our salvation by faith, Eph. 2:8, 9:

For it is by free grace that you are saved, through faith,. And this is not of yourselves, but it is the gift of God. – Not because of works, lest any man should boast.

 

 

 

 

 

 

 

(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; } 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));