Probably just a couple of typos in the example

I suppose $label should be $filed in line 13; and the $pod_name parameter on line 15 probably $pod instead

(great example by the way - it showed me the way to using pod fields for search / sort forms on the frontend)