Python Sort Object Array Javascript Mdn Setinterval Syntax