Sort view by frequency