We observe that the design of optimal weighted order statistic (WOS) filters under the mean absolute error criterion can be thought of as a two-class linear classification problem. Based on this observation, the perceptron algorithm is applied in designing WOS filters. It is shown experimentally that the perceptron algorithm can find optimal or near-optimal WOS filters in practical situations.