I have a file with very big num like below
45313904626416486480179546360796323469287116537171
465573254230695450538671922463236910370073247307526
5906233480284069039032926795367974774430427486375
How to sort this kind of num ?
The result should be something like (real file is 100000 lines):
5906233480284069039032926795367974774430427486375
45313904626416486480179546360796323469287116537171
465573254230695450538671922463236910370073247307526
I try something with
MyFlexibleArray := TList<UInt64>.Create;
AssignFile(F, OpenTextFileDialog1.FileName);
Reset(F);
repeat
Readln(F, str);
MyFlexibleArray.Add(UInt64(str));
until EOF(F);
CloseFile(F);
MyFlexibleArray.Sort;
With a TStringList, the result wasn't sort in natural way!
Any help will be greatly appreciated.
5079598143104014379457667649331467875308351922_8with_being a NUL byte. Whoever will need this file again in the future reply to me.