midi: mark sort, recursive.