WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Categories

DataStore::normalize_order_by() protected WC 1.0

Maps ordering specified by the user to columns in the database/fields in the data.

{} It's a method of the class: DataStore{}

No Hooks.

Return

String. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->normalize_order_by( $order_by );
$order_by(string) (required)
Sorting criterion.

Code of DataStore::normalize_order_by() WC 5.3.0

<?php
protected function normalize_order_by( $order_by ) {
	if ( 'date' === $order_by ) {
		return 'time_interval';
	}
	if ( 'category' === $order_by ) {
		return '_terms.name';
	}
	return $order_by;
}