list-terms now prints in a reasonable order.