adding secondary sort by word