Fix getInfoForAllHosts to keep an order

Signed-off-by: Kirill Enykeev <enykeev@gmail.com>