Rama,
AFAIK ABAP has no way of sorting an internal table by the the length of the data in a column. You are going to need to do as others have suggested or not do it at all. Those are your choices. What is the problem with adding a length column to your internal table or shifting your data to the right before sorting? These seem like rather straight forward and simple ways of doing this.