I\'m trying to sort my table by javascript(only javascriptpure, not library and not framework, only javascriptpure).
Each column sort by clicking in every header tag
What you want is most likely a natural sort. Where you can sort on alphanumerics, "naturally". There are a myriad of options out there on npm
that you can use as reference. The first hit on google is javascript-natural-sort. This should point you in the right direction.
Once you have that, I would bind an event handler to your table header, which passes along the column name you wish to .sort()
on, then natural sort your places
array based on that key, then rerender the table.