sorting datetimepicker and adding focus-first class for forms