Order the observations so that
using a fixed or randomized rule for ties. The L-nearest-neighbour classifier estimates
and predicts a class maximizing .