WordPress at a glance
function is not described

SimplePie::sort_items() public WP 1.0

Sorting callback for items

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

No Hooks.

Return

true|false.

Usage

$result = SimplePie::sort_items( $a, $b );
$a(SimplePie) (required)
-
$b(SimplePie) (required)
-

Code of SimplePie::sort_items() WP 5.7.2

<?php
public static function sort_items($a, $b)
{
	$a_date = $a->get_date('U');
	$b_date = $b->get_date('U');
	if ($a_date && $b_date) {
		return $a_date > $b_date ? -1 : 1;
	}
	// Sort items without dates to the top.
	if ($a_date) {
		return 1;
	}
	if ($b_date) {
		return -1;
	}
	return 0;
}