Oct 29, 2020 02:00 AM
I can get records sorted by some field like below
const records = useRecords(table, {
sorts: [{ direction: 'desc', field: actionField }],
});
but how can I get records sorted by manual order?
Solved! Go to Solution.
Oct 29, 2020 08:40 AM
What do you mean by manual order? You can adopt the sorting of a particular view by pulling records from there as opposed to a table. Otherwise its going to be records.sort((a,b) => {insert your sorting logic here})
Oct 29, 2020 08:40 AM
What do you mean by manual order? You can adopt the sorting of a particular view by pulling records from there as opposed to a table. Otherwise its going to be records.sort((a,b) => {insert your sorting logic here})
Oct 29, 2020 10:31 AM
You can adopt the sorting of a particular view by pulling records from there as opposed to a table
That’s the solution.Thanks a lot!