Hi, currently I created a scripted field containing the days of week and explaining how much logs have come during that day. I am currently trying to organize the days into the week order (e.g. sunday, monday, tuesday, wednesday, thursday, friday, saturday) but currently it is like this :
I want to be able to change the dates to the week order.
This is my script currently inserted :
["", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"][doc['xxx'].value.dayOfWeek]
Let me know what works best! I tried alphabetically, descending, ascending, to no luck.