Sorting an array of null objects

BlitzMax Forums/BlitzMax Programming/Sorting an array of null objects

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.

This works
Local a:Object[5]

Rem 
'uncomment this to solve it since they are no longer null
For Local i:Int = 0 To 4
	a[i] = New TImage
Next
EndRem

Try
	a.sort()
Catch except:TRuntimeException
	Print except.ToString()
EndTry