I'm trying to find a way to reverse the order of values for a multivalue field. Use the following SPL as the base search: | makeresults
``` Create string of characters, separated by comma...
See more...
I'm trying to find a way to reverse the order of values for a multivalue field. Use the following SPL as the base search: | makeresults
``` Create string of characters, separated by comma ```
| eval mv_string = "banana,apple,orange,peach"
``` Split string into multivalue, using comma as the delimiter ```
| eval mv_ascending = split(mv_string, ",") My goal is to have a multivalue field that I can mvjoin() in this order: "peach,orange,apple,banana" In programming languages, like Python, you can use slicing to reverse the direction of a list (i.e., multivalue). However, it seems mvindex() is a watered down version of this. To my knowledge, this SPL function doesn't allow reversing the order. You can grab different index values with mvindex(), but it's always with the original list order. Anyone else come across this?