default sorting for data list
fix few bugs in calendar
fix few errors when cleaning memory