OrderedTraversalPolicy can be used. The

FocusTraversalOrder widget wrapped around the focusable components
determines the order. The order can be any subclass of

FocusOrder, but

NumericFocusOrder and

LexicalFocusOrder are provided.

If none of the provided focus traversal policies are sufficient for your
application, you could also write your own policy and use it to determine any
custom ordering you want.

Here’s an example of how to use the FocusTraversalOrder widget to traverse a
row of buttons in the order TWO, ONE, THREE using NumericFocusOrder.

FocusTraversalPolicy

FocusTraversalPolicy is the abstract base class for concrete policies, like
ReadingOrderTraversalPolicy,  OrderedTraversalPolicy and the
DirectionalFocusTraversalPolicyMixin classes.