Order syntax

Problem: I’m trying to list repositories in ID order, but not getting the syntax correct. I’ve searched, but there don’t appear to be any concrete examples and the help description is less than obvious. I’ve tried --order ID, --order Id, --order id, --order “ID DESC”, --order “ID ASC”. I assume “DESC” means descending? I’m not sure what ascending would be? I just tried “ASC,” but that did not work. Does anyone know the syntax which one would use with hammer repository list --order … ?

Expected outcome: Repositories listed in order.

Foreman and Proxy versions: 2.1.3-1

Foreman and Proxy plugin versions:

Distribution and version: CentOS 7.7

Other relevant data:

Try
hammer repository list --order ‘product_name desc’

hammer repository list --help gives you the list of field names after which you can sort. In your case, it may be product_id

Regards,
Hans-Joachim

Thanks. I didn’t quite understand the help explanation, but now getting it a little. Does not seem to be a way to sort on ID. Oh well.

Thanks again!