diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 8ef3c08db02..5a5681be534 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -1582,7 +1582,7 @@ static int compare_machine_info(const void *a, const void *b) { const struct machine_info *u = a, *v = b; if (u->is_host != v->is_host) - return u->is_host > v->is_host ? 1 : -1; + return u->is_host > v->is_host ? -1 : 1; return strcasecmp(u->name, v->name); }