protected function _comparePosition( MShop_Common_Item_Position_Interface $a, MShop_Common_Item_Position_Interface $b )
	{
		if( $a->getPosition() === $b->getPosition() ) {
			return 0;
		}

		return ( $a->getPosition() < $b->getPosition() ) ? -1 : 1;
	}
protected function _comparePosition( MShop_Common_Item_Position_Interface $a, MShop_Common_Item_Position_Interface $b )
	{
		if( $a->getPosition() === $b->getPosition() ) {
			return 0;
		}

		return ( $a->getPosition() < $b->getPosition() ) ? -1 : 1;
	}
protected function _comparePosition ( MShop_Common_Item_Position_Interface $ a , MShop_Common_Item_Position_Interface $ b ) { if ( $ a -> getPosition ( ) === $ b -> getPosition ( ) ) { return 0 ; } return ( $ a -> getPosition ( ) < $ b -> getPosition ( ) ) ? - 1 : 1 ; }
Compares the positions of two items for sorting.

@param MShop_Common_Item_Position_Interface $a First item
@param MShop_Common_Item_Position_Interface $b Second item
@return integer -1 if position of $a < $b, 1 if position of $a > $b and 0 if both positions are equal
Compares the positions of two items for sorting .