Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Question::sort_choices( string $choice_a, string $choice_b )

Sort choices by marker.


Description Description


Parameters Parameters

$choice_a

(string) (Required) Serialized choice data.

$choice_b

(string) (Required) Serialized choice data.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/models/model.llms.question.php

	private function sort_choices( $choice_a, $choice_b ) {
		$a_data = unserialize( $choice_a->data );
		$b_data = unserialize( $choice_b->data );
		return strnatcmp( $a_data['marker'], $b_data['marker'] );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.30.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: