Sort Array Object By Value Javascript Code