Sort Array Object By Value Javascript Interview