Just some idea:
variables into a local array, then sort this into your history panel LOCALLY. When I did the original mhttpd
even supports drag-and-drop. So let's keep that in mind for the future.