I have an array called files:
['Cpp-New.html', 'dirname', 'dirname.html', 'dirname.py', 'HarryPotter', 'Java-New.html', 'poop.css', 'test01.html', 'Web-New.html']
which gets listed in html. (List)
but I would like to order/sort it so everything without a ."file extentsion" gets listed at the top. Currently the browser just receives the array in alphabetical order.
What is the best way to approach this? I tried doing some research but was unable to come up with any solutions.
Thank you.