fix bug compile and sorting text