Apple interview question

Sort the version number(string separated by dots)