fixed sort for months view and removed deprecated method