Is it possible to sort values in Related Record JSON? #594
Labels
Layer: Log Management
Items related to the custom objects & Logger Console app
Type: Enhancement
New feature or request
New Feature Summary
In error log field "Related Record JSON" I see this:
![2023-12-14_14h37_35](https://private-user-images.githubusercontent.com/5740564/290536126-2657d27c-e529-4845-866f-ae156a0de16e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4MjUwODcsIm5iZiI6MTczOTgyNDc4NywicGF0aCI6Ii81NzQwNTY0LzI5MDUzNjEyNi0yNjU3ZDI3Yy1lNTI5LTQ4NDUtODY2Zi1hZTE1NmEwZGUxNmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTdUMjAzOTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmFlMDI2ZGVlMWZhNGY0OTgzYWM0MmFmYTJhZmJlYzRmYTYwYjk0ODVlZGVjMmNmMGY4ZThjMzE2ZmM5NWRjMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.S_-9hBNGLkYpwXZbrcSud1xH6XcpMYToBixfce544vI)
I would like to see it sorted from A to Z.
Why?
I got null pointer exception and want to check EndDate field value. I am expecting to have it at the top but list is unordered.
This is "Nice to have" as I can use search currently but it would be usefull to sort Map keys before it is converted to JSON.
Possible solution:
Probably you need to create List out of Map.keyset() then sort it and rebuild MAP again.
The text was updated successfully, but these errors were encountered: