Which part does “ordering”? This doesn’t sort anything. For one thing, better exclude structures by [!bridge][!tunnel][!embankment][!cutting][!indoor] (also [highway!=corridor] , but not significant if [highway][name] is used) to be safe.
Overpass doesn’t have a distance function. You can’t calculate it for sorting.
There are also many distance measures, each suitable for different cases. Overpass would need to implement multiple of them, and the user still need to choose which to use.
For completeness, out 1 doesn’t mean it will return the closest. It’s a database operation only.
There are many ideas for these. The most basic hack I thought about before might be to add an integer function, which would allow sorting by abusing the id. That would work for object lengths. But there still needs to be a distance function for the question here. Additional sort orders · Issue #81 · drolbr/Overpass-API · GitHub
In the meanwhile, and actually ever after, use QGIS for these large-scale processing tasks. Or as another hack, abuse Conflation in JOSM to spatial join as a crude GIS suite. JOSM/Plugins/Conflation - OpenStreetMap Wiki
If you need an API or something for programs, there are various options

Fundamentally, remember to consider your purpose. “Nearest” road doesn’t necessarily correspond to the address (reverse geocoding), or access point as a routing target (not all routers are capable of this).