> well... I can't. Still, I coded Emu Loader > the "StringList" container does sorting on its own.
It's not that hard to write a sort, but I just think all programmers should know who to at least write a bubble sort. They are very simple to do, I know off the top of my head how to write a Bubble, Shell and Quick sorts. I used to use them on my Commodore 64 until I found a great Assembly Bubble sort. I do understand, I tend to use other people sort programs too, I very rarely write my own but if you write your own, you can make the lists any way you want, other than just a simple list.
The first real programming class, I took in College, I had to write a string sort for Fortran (WatFiv), the fun part is WatFiv doesn't support strings, you had to store 2 letter per integer, and have the integers is an array. That was the only way to have a String array. The Fortran class that had ONE math problem and it was 2 line of code to write.
|