Sorting

There are 100000 records in a table and i need to sort them.But retrieving of this data is happening in batch mode say 10 .so how to sort 100000 records.please suggest.
[196 byte] By [msnma] at [2007-11-27 5:53:47]
# 1
hi, Don't understand the meaning of "But retrieving of this data is happening in batch mode say 10"
okoktima at 2007-7-12 15:47:26 > top of Java-index,Core,Core APIs...
# 2
Only 10 records are retrived at a time from the database.
msnma at 2007-7-12 15:47:26 > top of Java-index,Core,Core APIs...
# 3
homework? try mergesort http://en.wikipedia.org/wiki/Mergesort
developer_jbsa at 2007-7-12 15:47:26 > top of Java-index,Core,Core APIs...