in reply to
Re: Sorting Numbers & Text
in thread Sorting Numbers & Text
I start with a "new" value that isn't in the "list(file)" yet (either alpha or numeric), then start reading out the values one at a time from the sourcefile, compare the two, print the "smallest" back to a tempfile while retaining the largest for the next read... and so on... (kind-of-a-bubble-sort) then swap the files back at the end. its the "comparing" of mixed types that i get stuck on. and i'm worried about running out of memory if i just load into array and <=> sort function (which i may end up doing *heh*) but you have given me an idea about "flagging" the first character as alpha or numeric ... *hmmmm*
I did try re-inventing the wheel...
But it kept getting stuck on the corners