| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | alphabetic list |
Hi all, does anyone have any code to alphabetise a list, from a file with delimited data. Ive been partly successfull in doing my own, but there has to be a way better way to do it. Can anyone help. --- GEcho 1.00 --------------- ** A related thread FOLLOWS this message. FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: DGJA1134 Date: 12/15/96 From: KURT KUZBA Time: 06:18am \/To: RICK COATES (Read 6 times) Subj: R: alphabetic list RC> Hi all, does anyone have any code to alphabetise a list, RC> from a file with delimited data. Ive been partly RC> successfull in doing my own, but there has to be a way RC> better way to do it. Can anyone help. rc>...... Strings may be alphabetized simply by comparing them in a greater-than/less-than fashion. Any of your sorting methods should work fine with your data. If the number of entries in your data exceeds the number of elements in your array, then you may sort several portions of you list into sorted sub-lists, then recombine the sub-lists by sorting the next element in each until they are depleted. You may which to also employ UCASE$() or LCASE$() on your strings to ensure that mixed case entries do not invalidate your sorting method. --- > ]* Origin: DarkZone BBS, NODE1 V.34+ V.fc HST +61-63-726978 (3:623/683) * Origin: THE BIG ELECTRIC CAT Melville Sask *SDS* *PDN* (1:140/53) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.