Fix upgrade version check in preinst to handle 11.11
We were using mathematical comparison to match versions because when this was initially implemented, we didn't go to double-digit minor versions. However, mathematical comparison will fail when comparing versions like 11.9 v/s 11.11. So, we have to switch to something that understands version strings. Using sort
seems to be the quickest solution.
Edited by Balasankar 'Balu' C