recently sorted using the table component of antd. If the data is as follows, how to write the sorting function
sorter: (a, b) = > a.key1-b.key1;
like this, an is the row of "aa" data. How do you take out the value corresponding to the last attribute of an and b and compare the size to sort it?
Please help me with your answers!
problem description
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)