Initial sorting

Is it possible to initial sort by a column or more?
In react-table v7 you did it like this
const sortees = () => [
  {
    id: "firstName",
    desc: false
  },
  // other fields
];

useTable(
  {
    initialState: {
      sortBy: sortees,
    }
  },
  useSortBy,
);

but how do you do that in react-table v8?
Was this page helpful?