'Returns an in-order list of models with the matching ids in `ids`.'

def by_ids(self, ids, filters=None, **kwargs):

    if (not ids):
        return []
    ids_filter = self.model_class.id.in_(ids)
    found = self.list(filters=self._munge_filters(ids_filter, filters), **kwargs)
    return self._order_items_by_id(ids, found)
