Modify the order of index
Write script to convert PMF-based result to expected value