I use iwd as wireless deamon, and it automatically connects to available networks for which I've inserted the password in the past.
How can I instruct it to prefer a SSID over another when more than one is available?
From man iwd.config I understand that [Rank] (see here) setting should serve this purpose, but I don't find an example of using it.