[Implemented] More sorting functions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] More sorting functions

Post by BackupUser »

Restored from previous forum. Originally posted by Andre.

I would like to see in next PB version following commands to support using of self-builded database files (loading .csv format or similar):

SortStructure (ArrayName(),Field,Option)

ArrayName() = Array (builded from Structure) which should be sorted
Field = Field in the structure, which should be the base for sorting
Option = Sort direction (same as SortArray)

SortList (ListName(),Field,Option)

Same as above, but for linked lists.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by redacid.

Yes, a SortList-Command would be very useful.

BlitzBasic for Amiga has such a command and I used
it very much.

Only Amiga makes it possible!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by traumatic.
Originally posted by Andre
SortStructure (ArrayName(),Field,Option)
SortList (ListName(),Field,Option)
err, any news on this?
Post Reply