function moveColumn(oColumn, bNext) {
		const oTable = oColumn.getParent();
		const aVisibleColumns = oTable._getVisibleColumns();
		const iIndexInVisibleColumns = aVisibleColumns.indexOf(oColumn);
		let iTargetIndex;

		if (bNext && iIndexInVisibleColumns < aVisibleColumns.length - 1) {
			iTargetIndex = oTable.indexOfColumn(aVisibleColumns[iIndexInVisibleColumns + 1]) + 1;
		} else if (!bNext && iIndexInVisibleColumns > 0) {
			iTargetIndex = oTable.indexOfColumn(aVisibleColumns[iIndexInVisibleColumns - 1]);
		}

		if (iTargetIndex != null) {
			TableUtils.Column.moveColumnTo(oColumn, iTargetIndex);
		}
	}
Moves the given column to the next or previous position (based on the visible columns).

@param {sap.ui.table.Column} oColumn The column to move to another position.
@param {boolean} bNext If <code>true</code>, the column is moved one position to the right, otherwise one position to the left.