Sorting any field

BlitzMax Forums/BlitzMax Beginners Area/Sorting any field

Lets say I have a List of this Type....
Type Unit
     Field X:Float,Y:Float
     Field Number:Int

     Method New()
          Number=Rand(1000)
          ListAddLast UnitList,Self
     End Method
End Type

How Can I Use Sort to Sort this list Using the Number Field. I want to go from Low to High.

Regards,
Eric