midi: bad cycle order marks check on/off with a depth parameter on sorting.