When is a weighted average of ordered sample elements a maximum likelihood estimator of the location parameter?

When is a weighted average of ordered sample elements a maximum likelihood estimator of the location parameter?