Apple Interview Question

Sort the version number(string separated by dots)