Directory comparision : path1 : /home/users/term/R1.0/test/mw & path2 : /home/users/term/R1.2/test/mw  
I would like to compare the above two directory paths and output the path which has highest version.
output = /home/users/term/R1.2/test/mw

what is the best way to achieve it.

