Sort output by most common first