cli: Sort object types to be processed in the right order
Order was randomized since 4154d43a4c55c20df7f37466f84adba3c1505c64