sort scripts before running them