How to order rows in table class in cakephp 4.2

Is there a method in Table class to order the rows in that class so that I don’t have to do it in all the controller/actions I am accessing to that table?

What do you mean by “order the rows in that class”?

Look at the ORM Event System and especially the beforeFind hook.

In there you can add a orderBy to the query object whenever that specific table class is used.

Thank you @KevinPfeifer, it worked perfect