Sorting Table Columns

{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
}
[ "userId", "id", "title", "completed" ]
[ empty x 2, "title", empty x 3, "id", empty x 2, "completed",empty x 78, "userId" ]
[ "title", "id", "completed", "userId" ]
const HeaderOrder = 
HandlingHeaders(Header.order ? Header.order : 99);
TableHeaders[HeaderOrder] = Key;
[ empty x 2, "userId", .....]
[ empty x 2, "userId", "title", ......]
const HeaderOrder = 
HandlingHeaders(Header.order ? Header.order : 99);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store