working out moment.js implementation for event sorting