System Software filter and Opkg Info

I was recently playing with System -> Software -> filter and searched for "tcl" and I got 3 packages and when I go to the shell and type opkg info '*tcl*' | grep "Packages:" , I get the same amouth of 3 packages but a different order. But when I search for example "alsa", I get 14 and 10, respectively and diffeent order as well.
How does the System -> Software's filter work and how to mimic the same output for opkg?