Sort the M* and P* arm64 registers
Sponsored by: Innovate UK
(cherry picked from commit 2abeef73004238d49f781b12b89e003ceb048018)