A small EntityFieldsQuery class extension that will allow one to create a new WeightEtnityFieldQuery and that data will be sorted by the weight module.
This Module was inspired by #1419820: Entity weighting and may end up being merged into the weight module but for now feel free to use it.

usage

$query = new WeightEntityFieldQuery();
  $result = $query
    ->propertyCondition('status', 1)
    ->entityCondition('bundle', 'page_header')
    ->range(0,3)
    ->execute()
  ;

All development sponsored by Knectar

Project information

Releases