2

I use angularJS to show this list of objects:

<tr ng-repeat="message in vm.messages">

and message has a field time, this field has the following format:

dd.MM.yyyy HH:mm:ss (e.g. 22.09.2016 15:17:45) -> string format

and I will order the message object in reverse dateTime order. Is there a possibility to do this?

<tr ng-repeat="message in vm.messages | orderBy:'-time'"> 

does not do it.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.