Sort Array Based On Date Javascript Coder Apps