mongodb_field_storage.module needs updating for sort changes to entityFieldQuery.

Comments

catch’s picture

majorrobot’s picture

Issue summary: View changes
Status: Active » Fixed

Looks like this was worked in quite a while ago. This is in lines 411-428 of current HEAD:

$sort = array();
      foreach ($query->order as $order) {
        switch ($order['type']) {
          case 'field':
            $key = $order['specifier']['field']['field_name'] . '.' . $order['specifier']['column'];
            break;
          case 'property':
            $key = $order['specifier'];
            break;
          case 'entity':
            $key = $entity_map[$order['specifier']];
            break;
        }
        $sort[$key] = $order['direction'] == 'ASC' ? 1 : -1;
      }
      if ($sort) {
        $cursor->sort($sort);
      }

Core Entity Query tests related to ordering pass, so I'm setting this to Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.