PhpTags/WPage default sort key

From Test foxway
Jump to: navigation, search

This page demonstrates the PhpTags extension

Bucket in the sand.svg You can play it in the namespace sandbox (editing is allowed for anonymous users there)


Source of page:

{{#phptag: echo 'Default sort key is: '; var_dump( WPage::$DEFAULT_SORT_KEY ); }}

{{#phptag: echo 'Set it to "A B C"'; WPage::$DEFAULT_SORT_KEY = 'A B C'; }}

{{#phptag: echo 'Now default sort key is: '; var_dump( WPage::$DEFAULT_SORT_KEY ); }}

Result:

Default sort key is:
int(0)

Set it to "A B C"

Now default sort key is:
int(0)

You can check the order of this page at the categories PhpTags and Test pages. It must be in "A" group.