This module extends existing EntityQuery in order to allow modules to add custom expressions to it(currently only for sorting, not for filtering).Usage example(the SphericalDistance plugin lies in the /examples directory):https://www.drupal.org/sandbox/leonidzinets/3086735