Create max_length_for_sort_data 

http://www.itpub.net/thread-1417429-1-1.html