core: Sort commands on list output