1. A method for controlling selection of elements from an ordered set of N elements, by applying to the set a function P converting the order in which said elements are ordered in the set, into a desired order defined by said function P, for further selection said elements from the set according to the desired order; wherein the elements comprise at least one of the following: devices, items, parameters, values.