1

My JSON contains following keys

{
  "name": "usdjpy",
  "bestBid": 106.7297012204255,
  "bestAsk": 107.25199883791178,
  "openBid": 107.22827132623534,
  "openAsk": 109.78172867376465,
  "lastChangeAsk": -4.862314256927661,
  "lastChangeBid": -2.8769211401569663
}

I am using websockets to continuously fetch data and append it to HTML Table. I want to sort Table by "lastChangeBid" column without using any third party library.

  • 2
    How are you rendering your table, and why can't you do the same thing each time you get data from websockets? – Omri Luzon Apr 15 '17 at 03:59
  • 1
    Thanks.. i Did the same..I found the closest value in the table and inserted current value before that..using http://stackoverflow.com/questions/25061543/javascript-find-closest-number-in-array-without-going-under – Swati Maheshwari Apr 15 '17 at 07:33

0 Answers0