Write a React component named UsersTable
that accepts a list of users as a prop. Each user has the following type:
type User = {
id: string;
name: string;
age: number;
job: string;
};
The component should render:
<select>
dropdown with three options: Sort by name, Sort by age, and Sort by job, all of them descending.By default, the table is sorted in ascending order by age. When the user changes the dropdown selection, the table should re-render with users sorted by the chosen field.