TypeError thrown

usort(): Argument #1 ($array) must be of type array, stdClass given