Node query: maintain order as requested
Node query: maintain order as requested

If the client requests certain names, their order should be maintained.
This is already done for instance queries. Moving this part into a
separate function allows sharing code.

Signed-off-by: Michael Hanselmann <68b67885ff74281219b4a4be33cc20fd45078d7c@google.com>
Reviewed-by: Adeodato Simo <16293852a0900193fe70fa7d24f714f37ba99a56@google.com>

grnet/snf-ganeti,mbakke/ganeti,leshchevds/ganeti,ganeti/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,dimara/ganeti,yiannist/ganeti,apyrgio/ganeti,leshchevds/ganeti,apyrgio/ganeti,bitemyapp/ganeti,andir/ganeti,yiannist/ganeti,grnet/snf-ganeti,apyrgio/snf-ganeti,ganeti/ganeti,andir/ganeti,yiannist/ganeti,ganeti/ganeti,bitemyapp/ganeti,onponomarev/ganeti,apyrgio/snf-ganeti,dimara/ganeti,mbakke/ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,leshchevds/ganeti