Sorting Types

Blitz3D Forums/Blitz3D Programming/Sorting Types

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.

	For rp.richestplayer = Each richestplayer
		For rpb.richestplayer = Each richestplayer
			If rpb\money < rp\money
				tempname$ = rp\name$
				tempmoney = rp\money
				rp\name$ = rpb\name$
				rp\money = rpb\money
				rpb\name$ = tempname$
				rpb\money = tempmoney
			EndIf
		Next
	Next


Seems to work for me!