Refine `sortJsonArrayByKey` behavior and add tests.

The `sortJsonArrayByKey` function's return value and sorting execution are now more precisely defined. The function returns true only if all elements in the array contain the specified key with a string value.

Sorting is performed on arrays with mixed objects (some having the key, some not) only if all values used for comparison (either the target key's value or the first key's value) are strings. New test cases have been added to cover these scenarios, including a test with a real-world Memory array.

The dummy comment added unintentionally in `openbmc_message_registry.h` was also removed.

#gbmcweb-g3

PiperOrigin-RevId: 803609826
Change-Id: If47923adf9b98d0fdcdd2fafab982f66117ffdec
1 file changed
tree: 190a4406800df623a890c7eefbb906dfc3e43a87
  1. linux/
  2. .gitmodules