Sharepoint search results are ordered incorrectly when called from code
This particular problem has not been fully resolved. I found a workaround — see lower down — but the issue itself is still perplexing. If anyone has any views or opinions please feel free to comment.