fixed sorting on calendar events

allow contact field to be blank