Sort Array Of Objects Javascript Based On Value