AssignmentsReportsGenerator::addAdditionalOrderBy( $strOrder )

Add additional order sql statement

Description

Source

File: bp-integrations/learndash/buddypress/generators/AssignmentsReportsGenerator.php

	public function addAdditionalOrderBy($strOrder)
	{
		$strOrder = 'GREATEST(assignment_modify_date, assignment_post_date) DESC';

		if ($this->hasArg('order')) {
			$columns = $this->columns();
			$columnIndex = $this->args['order'][0]['column'];
			$column = $columns[$this->args['columns'][$columnIndex]['name']];

			$strOrder = "{$column['order_key']} {$this->args['order'][0]['dir']}, {$strOrder}";
		}

		return $strOrder;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.