Complete sortSketchComponent method in SketchBase class