array.sort()

Your welcomed SE, please send my check by post.