Very long TArrayD

Hello rooters,
Does anyone know how to built a very long TArray with about 10^10 entries? Unfortunately with TArrayD one can only use Int_t numbers as indices (which only go up to about 10^8 ). Actually what I want to do: Build an Array of Doubles with about 10^10 entries and then sort them.
Thanks for your help!

Are you sure that your computer has enough memory to perform this operation?
The array with doubles requires 80 Gigabytes. The index 80 Gigabytes too.
In total 160 Gigabytes!


Thank you for the answer! Now I do first cuts on my data, then the analysis. The array is now much smaller …