Try adding this to your search:
...
|eval has_star=if(match(Context_Command, "\*"), 1, 0)
|sort has_star, Context_Command
|fields - has_star
Here is a run-anywhere example:
| makeresults
| eval foo="I have a *"
| eval has_star=if(match(foo, "\*"), 1, 0)
| append
[| makeresults
| eval foo="I don't have a star"
| eval has_star=if(match(foo, "\*"), 1, 0)]
| sort has_star, foo
| fields - has_star
Note that you have to use the match command because regular expressions are the only way to match a literal wildcard. You probably already figured out that Context_Command="*" doesn't work.
... View more