[Implemented] Would be cool to have a SorStructuredtList()
Posted: Sun Jun 23, 2002 2:05 pm
Restored from previous forum. Originally posted by redacid.
As the subject says: I´m working with a LinkedList. Now I need to have it sorted. If I had a command like "SortList" this would be much easier.
Look at this:
Structure adresses
Name.s
Street.s
City.s
EndStructure
NewList AdrList.adresses()
Now I have added several elements to this list and like to sort it:
SortList(AdrList,\Name) ; if I want it to be sorted according to the names.
SortList(AdrList,\Street); sort according to the city.
Of course i could write my own procedure to do this...but for this task I´m just too lazy
Oh, forgot to tell: I´m using the Windows-Version 3.20. An external Lib could be enough.
regards,
Redacid
---
Only Amiga makes it possible!
Edited by - redacid on 23 June 2002 15:09:38
As the subject says: I´m working with a LinkedList. Now I need to have it sorted. If I had a command like "SortList" this would be much easier.
Look at this:
Structure adresses
Name.s
Street.s
City.s
EndStructure
NewList AdrList.adresses()
Now I have added several elements to this list and like to sort it:
SortList(AdrList,\Name) ; if I want it to be sorted according to the names.
SortList(AdrList,\Street); sort according to the city.
Of course i could write my own procedure to do this...but for this task I´m just too lazy
Oh, forgot to tell: I´m using the Windows-Version 3.20. An external Lib could be enough.
regards,
Redacid
---
Only Amiga makes it possible!
Edited by - redacid on 23 June 2002 15:09:38