You need to click the button to the right of the Author, (in the Metadata Editor) to recalculate the sort.
In bulk mode (multiple books selected), There is a tick box under Authors

If the values are already correct, just tick: OK
The Title sort has almost the same options