Sorting list by field

BlitzMax Forums/BlitzMax Programming/Sorting list by field

Oddball(Posted 2005) [#1]
I'm trying to sort a list of user defined types base on one of the fields. Has anyone got any code for this. Could I overide the Compare method with my own version then use SortList? If so exactly how is this done?


tonyg(Posted 2005) [#2]
You do exactly that : override compare and use sortlist.


Oddball(Posted 2005) [#3]
Ok found some example code in the wiki.