Change sort_index() to build_index() each time on execution of vee.

Should be sh compliant