cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
122
Views
0
Helpful
0
Replies

Sort Function in WxCC

phani venigalla
Beginner
Beginner

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.

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: