src/Alg/Sort/Selection.php
public static function sort( $list )
	{
		$n = sizeof( $list );
		for( $i=0; $i<= $n -1; $i++ )
		{
#			echo "List: ".implode( ", ", $list )."<br>";
			$lowest	= self::getLowest( $list, $i, $n );
#			echo "<br>$i $lowest<br>";
			self::swap( $list, $i, $lowest );
#			print_m ($list);
		}
		return $list;
	}
public static function sort( $list )
	{
		$n = sizeof( $list );
		for( $i=0; $i<= $n -1; $i++ )
		{
#			echo "List: ".implode( ", ", $list )."<br>";
			$lowest	= self::getLowest( $list, $i, $n );
#			echo "<br>$i $lowest<br>";
			self::swap( $list, $i, $lowest );
#			print_m ($list);
		}
		return $list;
	}
public static function sort ( $ list ) { $ n = sizeof ( $ list ) ; for ( $ i = 0 ; $ i <= $ n - 1 ; $ i ++ ) { #			echo "List: ".implode( ", ", $list )."<br>";
 $ lowest = self :: getLowest ( $ list , $ i , $ n ) ; #			echo "<br>$i $lowest<br>";
 self :: swap ( $ list , $ i , $ lowest ) ; #			print_m ($list);
 } return $ list ; }
Sorts List with Selection Sort.
@access		public
@static
@param		array		$list		List to sort
@return		array
Sorts List with Selection Sort .