-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort seems to be unstable #4
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling the sort of an already sorted file leads to wrong output.
This can be tested e.g. by calling
sortxml.exe c_sorted.xml
orsortxml.exe file1.xml > file2.xml && sortxml.exe file2.xml > file3.xml && sortxml.exe file3.xml > file4.xml
. file1.xml and file3.xml match, and file2.xml and file4.xml match, i.e. output toggles.input file (c_sorted.xml)
output file:
Program has been compiled with VS2012.
The text was updated successfully, but these errors were encountered: