Js Add Property To Array Of Objects Sort Javascript