Open dilshankm opened 7 years ago
You can do that by specifying sorting option as initial value for NgTableParams:
new NgTableParams({
filter: requestQueryParameters.filter,
sorting: requestQueryParameters.sort,
count: requestQueryParameters.recordsPerPage,
page: requestQueryParameters.page
},
{
dataset: [.....]
}
});
I need a list to be sorted at the initial page load.But sorting seems only working when i click the sorting arrows. Is it possible list to be sorted at initial page load.