回复: array_sort function behaviour

2020-05-19 Thread Liu Genie
I will extract the element I want to sort, then combine it with the old struct as a new struct whose first element is what I want to sort. 发件人: neeraj bhadani 发送时间: 2020年5月19日 19:09 收件人: user 主题: array_sort function behaviour Hi All, I need to sort the array

array_sort function behaviour

2020-05-19 Thread neeraj bhadani
Hi All, I need to sort the array based on a particular element from a struct. I am trying to use the "array_sort" function and could see that by default it is sorting the array but based on the first numerical element. Is this the expected behaviour? PFB sample code and output.