Having issue when sorting the JSON objects on Pebble Parser.
{% for user in tnx | sort %}
{{ user.ServiceStartDate}}
{% endfor %}
Error:
class java.util.HashMap cannot be cast to class java.lang.Comparable (java.util.HashMap and java.lang.Comparable are in module java.base of loader 'bootstrap')
What is the best way of sorting the Json Objects based on Most recent date in the List.
Thanks,
Phani.