@Override
	protected void addHandled(Handled h)
	{
		// Can only add drawables
		if (!(h instanceof Drawable))
			return;
		
		Drawable d = (Drawable) h;
		
		// If the depth sorting is on, finds the spot for the object
		if (this.usesDepth)
		{
			int index = 0;
			
			while (index < getHandledNumber() - 1)
			{
				// Checks if there's an object with a higher depth
				if (((Drawable) getHandled(index)).getDepth() < d.getDepth())
				{
					super.insertHandled(d, index);
					return;
				}
				else
					index ++;
			}
			// If no object with a higher depth was found, simply adds the 
			// drawable to the end of the list as usual
		}
		
		super.addHandled(d);
	}