Sorting a lift by a field in ascending order

BlitzMax Forums/BlitzMax Beginners Area/Sorting a lift by a field in ascending order

oh, I see you asked for an exmplanation :), so here goes...

To be able to sort a custom type you need to provide a compare method, this takes an object as its param, you then need to work out if this objects value is less/equal or greater than its instance value, you return <0 if its less, 0 if its equal or >0 if its greater.

Hope that helps.