Problem/Motivation

I am trying to sort a custom entity by date to be displayed on an Overview page. The sort does not work as expected.

Steps to reproduce

  1. Create a custom entity type.
  2. Add a Date field to the Bundle.
  3. Create dummy entities with date value.
  4. Sort the Custom entity based on date.

The sort does not work on DateTime, Title, Timestamp and/or Number.

Comments

AshM created an issue. See original summary.

enaznin’s picture

Could you please update the IS with a little more details like where are you trying to sort? Thank you.

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.