I want you to design an table, which lists data from an API. and should support server side sorting
I'll create a table component that fetches and displays data from an API with server-side sorting functionality.
This implementation creates a data table with server-side sorting functionality. Here's how it works:
In a real application, you would replace the mock data in fetchData() with an actual API call that accepts sorting parameters. The server would then return the sorted data based on those parameters.
The table is fully responsive and shows visual indicators for the current sort column. It also includes status indicators with colored dots for better visual representation.