ssh: fix sorting nodes by name