Vector clamping, componen find by predicate and sorting layer set in one function for renderers.