I have tried to compare the below strings. but I'm not able to get the correct answer.
    var a = "17.4.0.50";
    var b = "3.1.0.114";
    
    if(a>b){
    alert("a is greater than b");
    }
    else{
    alert("b is greater than a");
    }Got result as "b is greater than a".
Could anyone help me to get correct result on this?
Thanks in advance,
 
     
    