Initialize sort object in date template