in reply to a sort question

sort { $a<=>$b || $a cmp $b } qw(1.1 40.5 10.3 11.5 11.1.1) that gets the correct result. but it also error Argument "11.1.1" isn't numeric in numeric comparison (<=>)