fixed sorting of archives