LLMS_Table_NotificationSettings::sort_rows( array $row_a, array $row_b )

Sorting function to display all loaded notifications in alphabetical order


Parameters Parameters

$row_a

(array) (Required) first row to compare

$row_b

(array) (Required) second row to compare


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/admin/settings/tables/class.llms.table.notification.settings.php

	public function sort_rows( $row_a, $row_b ) {
		return strcmp( $row_a['notification'], $row_b['notification'] );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.10.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.