sort and complete text cats