1. A method of controlling a locking function in a locking arrangement, the method comprising: creating a database from predetermined objects; determining at least one user-specific inter-object internal order in the database; detecting a control command for starting the control of the locking function; displaying a predetermined number of objects on the display of the locking arrangement once the control command is detected; detecting the selection order of the objects; and changing the lock state when the detected object selection order is at least sufficiently close to a given user-specific inter-object internal order.