Move object to last position in list

BlitzMax Forums/BlitzMax Programming/Move object to last position in list

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

an alternative, and this may not be what you need, is to override the compare method on the types you are storing. return -1 for less than, 0 for equal, and 1 for greater than. then all you need to do is change on the instance of the type whatever the compare is using to base its values on and then call the sort method of the TList instance.