How to sort a kanban with tabs

Hi,
I have a board with columns and tabs and I’d like to sort the cards in each tab by a particular value on the card.
I see there is .sort method - is this the only way or are can this be done the board definition or other ways?