Relative Content

Tag Archive for pythonjmespath

Sorting an array/list by a specific item in an array attribute

I’m new to python/jmespath and am trying to sort the below students by their final grade in 2024. I’m sure I can come up with something in python to do it but was just wondering if there is any jmespath magic I can use. I have seen sort_by and know how to search/sort by simple attributes, but haven’t yet found anything that can do this.