# Discussion Topic: Sorting Logic with Priority Between manual\_datetime and createDate

**URL:** <https://discuss.liferay.com/t/discussion-topic-sorting-logic-with-priority-between-manual-datetime-and-createdate/372>\
**Category:** Search\
**Tags:** search\
**Created:** [February 23, 2026, 5:13am UTC](https://discuss.liferay.com/t/discussion-topic-sorting-logic-with-priority-between-manual-datetime-and-createdate/372 "2026-02-23T05:13:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wesley\_Roberts](https://dub1.discourse-cdn.com/flex014/user_avatar/discuss.liferay.com/wesley_roberts/32/554_2.png) [@Wesley\_Roberts](https://discuss.liferay.com/u/Wesley_Roberts)\
**Post date:** [February 23, 2026, 5:13am UTC](https://discuss.liferay.com/t/discussion-topic-sorting-logic-with-priority-between-manual-datetime-and-createdate/372/1 "2026-02-23T05:13:13Z")

</div>

The client requested the creation of a new field for the web content that allows overwriting the `createDate` value when filled. This new field references `manual_datetime`. The question is: **in the blueprint sort configuration, is it possible to apply a logic that considers both fields, giving priority to** `manual_datetime` **when it is filled, and otherwise using the conventional** `createDate` **?**

---

<div class="post-metadata">

**Author:** ![tibor.lipusz.liferay](https://dub1.discourse-cdn.com/flex014/user_avatar/discuss.liferay.com/tibor.lipusz.liferay/32/84_2.png) [@tibor.lipusz.liferay](https://discuss.liferay.com/u/tibor.lipusz.liferay)\
**Post date:** [March 4, 2026, 10:52am UTC](https://discuss.liferay.com/t/discussion-topic-sorting-logic-with-priority-between-manual-datetime-and-createdate/372/2 "2026-03-04T10:52:02Z")

</div>

Yes, this should be possible. You can define multiple fields, and the order determines which one applies first. Refer to [https://learn.liferay.com/w/dxp/search/liferay-enterprise-search/search-blueprints/search-blueprints-configuration-reference#sort-configuration](https://learn.liferay.com/w/dxp/search/liferay-enterprise-search/search-blueprints/search-blueprints-configuration-reference#sort-configuration) and to [https://www.elastic.co/guide/en/elasticsearch/reference/8.19/sort-search-results.html](https://www.elastic.co/guide/en/elasticsearch/reference/8.19/sort-search-results.html) for helpers.

–[tibor.lipusz.liferay](https://discuss.liferay.com/u/tibor.lipusz.liferay)
