Sort code
Finish index.