The invention relates to a method of controlling a locking function in a
locking arrangement. The method presented comprises creating (300) a
database from predetermined objects; determining (302) at least one
user-specific inter-object internal order in the database; detecting
(304) a control command for starting the control of the locking function;
displaying (306) a predetermined number of objects on the display of the
locking arrangement once the control command is detected; detecting (308)
the selection order of the objects; and changing (316) the lock state
when the detected object selection order is at least sufficiently close
to a given user-specific inter-object internal order.