Adding sort for date using angular