procedure selection sort list array of items size of list for to /set current element as minimum*min /check the element to be minimum *for + to if list[jlist[minthen min jend if end for /swap the minimum element with the current element*if indexmin ! then swap list[minand list[iend if end for end procedure