You need to use a sorting algorithm that is "in place". In other words, you won't need to have an entire list AND temporary lists in memory at the same time. Assuming you've got the members in an array and loaded in memory (can you run the program without starting to sort?), you should be able to use any algorithm that is specified as in place.
http://en.wikipedia.org/wiki/Sorting_algorithm should give you some good ideas
In reply to Re: "Out of memory" problem
by Ransom
in thread "Out of memory" problem
by abdullah.yildiz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |