In the spreadsheet view, once the data have been sorted by a column, it is impossible to get the list re-ordered according to node/edge id.
Thanks for your request.
The feature is now implemented in the current svn code line (revision #10236).
It is reachable through a new 'Sort by id' menu item in the contextual menu
of the table header.