make turbopack respect the order of extensions from ResolveOptions (#4888)
### Description
It would probably be a bit more efficient to split it up in
`read_matches`, but getting that to work requires a bit more work to
sort the results because it recursively calls itself with the same
pattern
fix WEB-925