按日期对 Drupal 视图进行排序,但将过期项目放在底部?

Sorting Drupal view by date but place expired items at the bottom?

我有一个视图列出了 "expiry" 日期的项目。例如:

Item 1: Expired yesterday [EXPIRED]
Item 2: Expires in an hour [NOT EXPIRED]
Item 3: Expires in 5 hours [NOT EXPIRED]

如果我按数据升序排序,我会得到这个订单。问题是,我想要:

Item 2: Expires in an hour [NOT EXPIRED]
Item 3: Expires in 5 hours [NOT EXPIRED]
Item 1: Expired yesterday [EXPIRED]

这样所有过期的项目都落到底部。

我想我需要以某种方式创建另一个指示 "expired" 的字段,然后也按它排序,但我不知道如何按 "generated" 字段排序,如果你知道的话我是什么意思?

我使用 Drupal Computed Field module 解决了这个问题。我将其添加到我的产品中,然后在视图中简单地按它排序。