; English forum: http://www.purebasic.fr/english/viewtopic.php?t=7503&highlight= ; Author: Andre (description by sec) ; Date: 11. September 2003 ; OS: Windows ; Demo: Yes ; Selection-Sort: ; ------------ ; Description: ; ++++ ; This is an agothirm simple sort, how it do? you image: we have an array A ; have n element , and need sort to A[0]i temp = a(i) a(i)=a(k) a(k)=temp EndIf Next i Debug "Contents of sorted array:" Gosub output End output: ; Print out the array content For i=0 To n-1 Debug a(i) Next Return ; IDE Options = PureBasic v4.00 (Windows - x86) ; Folding = -