Develop sortSketchComponent method in SketchBase class