Js Sort Json Array Javascript Append Text