<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 6, 2012, at 11:57 AM, J. Mwebaze wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I have several lists with approx 1172026 entries. I have been trying to sort the records, but have failed.. I tried lists.sort() i also trired sorted python's inbuilt method. This has been running for weeks.<div><br></div>
<div>Any one knows of method that can handle such lists. </div></blockquote><br></div><div>The issue there is the sheer size of the list. I can't think of an algorithium that wouldn't have a problem with a list of that size.</div><div><br></div><div>Two suggestions....</div><div><br></div><div>1) Is there no other way to organize this data, other than having it in a single list? You can't organize it by, for example, zip code, area code, year, or something, and make multiple lists? Reducing the size would speed the sort up.</div><div><br></div><div>2) Maybe consider a different storage method, for example, adding the data into a database? And then connecting to the database via python?</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- Benjamin</div><div><br></div><br></body></html>