src/Alg/Sort/Selection.php
protected static function getLowest( $list, $pos1, $pos2 )
	{
		$lowest = $pos1;
		for( $i=$pos1; $i<$pos2; $i++ )
			if( $list[$lowest] == $list[$i] )
				$lowest = $i;
		return $lowest;
	}
protected static function getLowest( $list, $pos1, $pos2 )
	{
		$lowest = $pos1;
		for( $i=$pos1; $i<$pos2; $i++ )
			if( $list[$lowest] == $list[$i] )
				$lowest = $i;
		return $lowest;
	}
protected static function getLowest ( $ list , $ pos1 , $ pos2 ) { $ lowest = $ pos1 ; for ( $ i = $ pos1 ; $ i < $ pos2 ; $ i ++ ) if ( $ list [ $ lowest ] == $ list [ $ i ] ) $ lowest = $ i ; return $ lowest ; }
Finds and returns Position of lowest Element in Bounds.
@access		protected
@static
@param		array		$list		List
@param		int			$pos1		Position of lower Bound
@param		int			$pos1		Position of higher Bound
@return		int
Finds and returns Position of lowest Element in Bounds .