Boolean sorting
In Sitecore Content Hub, Boolean properties have three possible values:
- true
- false
- null
When sorting results by a Boolean property, A to Z results are returned in the following order:
- Assets that have the Boolean property set to false.
- Assets that have the Boolean property set to true.
- 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:
- Assets that have the Boolean property set to true.
- Assets that have the Boolean property set to false.
- 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.
If you have suggestions for improving this article, let us know!