Merge DateTime from Date and Time


I need to order a list by the DateTime. Each entry has a value for date and time. If I use ng-repeat="task in tasks | orderBy:'date'" ng-model="" the instant ordering works, but of course only for the dates, not taking the time into account.

Is it possible to merge the given date and time to another string that I can use for ordering? I am using some localStorage['tasks'] = angular.toJson($scope.tasks); for saving the added entries.

I would like to keep external plugins out of the whole project.