How to order categories by an attribute?

sort categories magento 2 custom attribute ?

How to order a database collection?

Yes.