add test for structure sorting
fix MAJOR bug in vaspio where POSCAR is unsorted and POTCAR is sorted