Fix shortcuts bugs when sorting them,and change the implementing of calender.