Sort by ids

Hi all,

I'm doing a search where you can filter on some different attributes in combinations. One of the attributes that I have is searching for ids (http://www.elasticsearch.org/guide/reference/query-dsl/ids-query.html).

When I add values to the filter I would like the sorting to be in the order that I send in the ids into the filter. Does anyone know if this is possible?

Cheers!