Metric representations of a preference ordering