change index and keys
sorting indexes