sort the results of on/off cmd