sort doesn't have reliable behavior when the types vary ("Warning: Be careful when sorting arrays with mixed types values because sort() can produce unpredictable results.")
This caused the insert and access paths for links to use different keys (maybe affected other places as well, so updating the overall key to be sure).
This meant the core links tables wouldn't always be properly updated, meaning WhatLinksHere and LinkSearch could be wrong.
We'll run FlowFixLinks afterwards to fix the core tables.