Boolean sorting

In Sitecore Content Hub, Boolean properties have three possible values:

  1. true

  2. false

  3. null

When sorting results by a Boolean property, A to Z results are returned in the following order:

  1. Assets that have the Boolean property set to false.

  2. Assets that have the Boolean property set to true.

  3. Assets that do not have the Boolean property set, which equals null.

When sorting results by a Boolean property, Z to A results are returned in the following order:

  1. Assets that have the Boolean property set to true.

  2. Assets that have the Boolean property set to false.

  3. Assets that do not have the Boolean property set, which equals null.

By default, a Boolean property is null and items with this property are always last in the sorted list.

Do you have some feedback for us?

If you have suggestions for improving this article,