Basic Bubble Sorting Algorithm. It is very small and only consists of a few lines of code. Not that efficient though. Type in the number of numbers you want and the program will sort them. It can take a long time... O(n^2) n- array size
You can use this is one of your games, pls credit me if you do.