default arg for sort is a dict not a string
separate repo,org,cid,etc fields for human-friendly sorting

If sort by object.id, the collection and entity IDs are sorted
as text rather than as ints. Adds fields for each part of the ID.