Arun,
I always encourage my friends to use external sort instead of internal sort. What will happen if yours employees increase to 5,000 or 10,000? You will be having same problem everytime it reaches threshold. Until and unless you are sure your data will not go beyond known count.