.. schools should set by behaviour.At least in the first instance so that all the kids who can't or won't behave , can be in a class together, so that everyone else can achieve their best.Once you have separated that lot out, then the remainder could still be set by ability