Feb 25, 2001, 1:54 PM
Post #1 of 2
I already have a DB setup (uses pipe delimited format, "|") using a script that allows me to add, modify, or delete entries, but I'd like a script that can sort a all records by a single field.
A Flat-file DB Sorter/Displayer
In my specific case, the field is always numerical of varying digit lengths. I'd like a script that can sort the flat-file database each time the script is called & when it is called (accessed thru browser) it displays only two of the over 25 different fields - one of the two will be the numerical field that i wanted sorted.
Also, when I say of varying digit length I mean that the number might have anywhere from 5-8 digits in it, so the script will haveta understand that 600000 is more then 94000 - not just say 9 is more then 6.
The script does NOT need to take any input from user, merely sort a file (according to a numerical field in order of largest to smallest) & display 2 fields of over 25 in the file for each user.